Skip to main content

Posts

Sitecore Messaging Framework

  Sitecore Messaging Framework Recently I have implemented Sitecore Message Framework. Hopefully, it will be helpful for you. Scenario: I had a scenario where I was using a scaled environment and I wanted to save some data on the master DB from content delivery. As you know content delivery can access Core and Web Db and it cannot access master DB so to achieve this functionality I have used Sitecore Messaging Framework. What is a Sitecore Messaging Framework? Sitecore Messaging was introduced in Sitecore 9.0.1 version (Only SQL Transport). It supports message-based communication in Sitecore.  It is part of the XP, not part of the XM configuration. It wraps up the Rebus library. Please install the following libraries Sitecore.Framework.Messaging.Abstractions Sitecore.Framework.Messaging.Configuration Below are the steps: You need to create a configuration file for the bus which you need to copy to CM and CD. Then you need to create an empty class. Now you need to create a...

Sitecore 10.2 error: Failed to start service 'Sitecore Marketing Automation Engine Service"

Sitecore 10.2 error: Failed to start service 'Sitecore Marketing Automation Engine Service" I was facing an issue restarting "Sitecore Marketing Automation Engine Service" and getting the below error: Application: Sitecore.MAEngine.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException at Sitecore.XConnect.Client.XConnectClientConfiguration.CheckInitialized() at Sitecore.XConnect.Client.XConnectClientConfiguration.get_CurrentModel() at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteRuntimeResolver.VisitFactory(Microsoft.Extensions.DependencyInjection.ServiceLookup.FactoryCallSite, Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext) at Microsoft.Extensions.DependencyInjection.ServiceLookup.CallSiteVisitor`2[[Microsoft.Extensions.DependencyInjection.ServiceLookup.RuntimeResolverContext, Microsoft.Ext...

Sitecore Technology MVP Award 2023

 The Sitecore MVP Award celebrates the most active Community members worldwide who provide valuable online and offline expertise that enriches the community experience and makes a difference. I am pleased to announce that I have been naming a " Most Valuable Professional (MVP) " by Sitecore. After working for more than 7+ years in Sitecore it was fascinating to achieve this milestone which was my dream.  I am really thankful to everyone who has supported me in this journey and guided me. More details about the Sitecore MVP Program you can find  here

"An error with Nouce cookie occured" in Sitecore Single Sign-On

"An error with Nouce cookie occured" in Sitecore Single Sign-On I have implemented  Sitecore Single Sign-On using Custom Identity Provider  in my project. This is working fine on-premise but when I deployed it on AWS then this SSO functionality was not working on Chrome and I was getting the below error: Error: Solution: After some research, I found that I need to pass `CookieManager` property in `oidcOptions` object as mentioned below code: public ProjectIdentityProvider( FederatedAuthenticationConfiguration federatedAuthenticationConfiguration, ICookieManager cookieManager, BaseSettings settings) : base(federatedAuthenticationConfiguration, cookieManager, settings) { this.cookieManager = cookieManager ?? throw new ArgumentNullException(nameof(cookieManager)); } protected override void ProcessCore(IdentityProvidersArgs args) { var authenticationType = this.GetAuthenticationType(); var identity...

Part 5: Sitecore Dynamic CRM Connector: Sync Custom Facets(Checkbox Field)

Part 5: Sitecore Dynamic CRM Connector: Sync Custom Facets(Checkbox Field)  Part 1:  Install Sitecore Connect™ for Microsoft Dynamics 365 for Sales 7.0.0 for Sitecore 10.2 XP Part 2:  Sitecore Connect™ for Microsoft Dynamics 365 for Sales 7.0.0: Configure Endpoints Part 3:   Sitecore Dynamic CRM Connector: Use Delta Settings while Syncing Contact from Sitecore to CRM Part 4:  Sitecore Dynamic CRM Connector: Sync Marketing List from CRM to Sitecore   In this blog, we are going to sync custom facets from Sitecore to CRM. The custom facets document is available here  so I am assuming that you have already created custom facets.  Go to this location "/sitecore/system/Settings/Data Exchange/Providers/xConnect/Collection Models" and create a new "Collection Model Folder". Inside this folder create a "Compiled Collection Model" and type the namespace and assembly name of your custom facet model in the "Collection Model Type" field. Go to this locati...

Part 4: Sitecore Dynamic CRM Connector: Sync Marketing List from CRM to Sitecore

Part 4: Sitecore Dynamic CRM Connector: Sync Marketing List from CRM to Sitecore Part 1:  Install Sitecore Connect™ for Microsoft Dynamics 365 for Sales 7.0.0 for Sitecore 10.2 XP Part 2:  Sitecore Connect™ for Microsoft Dynamics 365 for Sales 7.0.0: Configure Endpoints Part 3:   Sitecore Dynamic CRM Connector: Use Delta Settings while Syncing Contact from Sitecore to CRM I had a requirement that I want to sync the marketing list from CRM to Sitecore. Sitecore already has a pipeline to sync the marketing list and contact which is related to that marketing list but there are some other steps that need to do which I am going to mention in this blog because I found it difficult to find all steps in any document. Steps: Go to the CRM and create a new Marketing List. Add a member to this marketing list.              Go to the "Dynamics Marketing Lists to xDB Reference Data Sync" pipeline from this location /sitecore/system/<...

Part 3: Sitecore Dynamic CRM Connector: Use Delta Settings while Syncing Contact from Sitecore to CRM

Part 3: Sitecore Dynamic CRM Connector: Use Delta Settings while Syncing Contact from Sitecore to CRM I faced an issue while I was syncing contacts from Sitecore to CRM all contacts were syncing but I wanted to sync only that contact which is not being synced in the last batch so to resolve this issue I used the existing delta setting pipeline as mentioned below: Steps: Go to this location  /sitecore/system/<Data Exchange>/<Tenant>/Pipelines/xConnect Contacts to Dynamics Sync Pipelines/Read Contacts from xConnect Pipeline. Right-click and select Insert the "Set Use Delta Settings Pipeline Step" pipeline. Move this pipeline after the "Add xConnect Client to Context" pipeline. In the "Context Value Reader" field select the "Value Readers/Common/Pipeline Batch Last Started Reader" value. In "Operator" select "On or after the selected date" or any other value which you require. Now when you will run the "xConnect ...