Posts

SITECORE ITEM CREATION USING POWER SHELL EXTENSION

Image
       With Sitecore poweshell extension we can create sitecore item in the content tree. New-Item -Path "master:/sitecore/system/Settings/Services/API Keys" -Name "TestItem" -ItemType "System/Services/API Key" -ForceId "546FB77C-D7A2-4B5F-B695-B5355150FCA5" the above command will create the item in the specified path. Thanks, Varun Allada

XdbSearchUnavailableException-Error 50000: Sync token is no longer valid

Image
 When we get the below error in CD or CM while performing any action in Sitecore. Need to see the logs in Xconnect index worker- if there is an error related to sync token follow the below. A rebuild of the xDB index should will those errors and fix the List Manager issues: https://doc.sitecore.com/xp/en/developers/101/sitecore-experience-platform/rebuild-the-xdb-index-in-solr.html Thanks, Varun Allada

MIGRATING ITEM HISTORY IN SITECORE- Workflow history not migrated from Sitecore 9 to Sitecore 10 Migration

Image
 When we are working on the Sitecore migration project. if the client wants to see the item history of the items it will be blank as shown below. As part of the migration, we need to migrate the item history data as well. to do so go to the existing sitecore_master database.                                           Please consider restoring the workflow history simply by copying the entries from old WorkflowHistory table to your new database. Thanks, Varun Allada

ENABLE EXM TO TRIGGER EMAILS LOCALLY USING YAHOO SMTP

Image
To use the yahoo server as your SMTP server to trigger emails follow the below steps 1. Create Yahoo Account 2. Go to setting  and account security 3. Enter your app name and click on generate password. 4. Copy the generated password. 5. Go to Sitecore.EDS.Providers.CustomSMTP.config file. Make sure from email in EXM is the same as the username in the above config file. Now you can trigger Emails up to 500 every day. Thanks, Varun Allada

ENABLE EXM TO TRIGGER EMAILS LOCALLY USING GMAIL SMTP

Image
To make use of GMAIL as your SMTP server to test the EXM Emails. Step1: Create a Gmail account and do not enable the 2 step verification. Step2:You need to allow less secure apps, you can do it by clicking the below link https://www.google.com/settings/security/lesssecureapps Step3:also try this one https://accounts.google.com/DisplayUnlockCaptcha Step4: In the "Sitecore.EDS.Providers.CustomSMTP.config" fille which will be the path "C:\inetpub\wwwroot\{yourinstance}\App_Config\Sitecore\EmailExperience\Sitecore.EDS.Providers.CustomSMTP.config". update the details. By doing the above changes you can use Gmail as an SMTP server to trigger emails. Thanks, Varun Allada

SITECORE EXM SUBSCRIBE TO LIST MANAGER FROM CD SERVER

Image
When we try to subscribe to the list manager from the CD server using the  ISubscriptionService it will not be working as the service will be only available in the "Standalone or ContentManagement" role only as shown below. you can find the above config file in the path "C:\inetpub\wwwroot\{yourinstance}\App_Config\Sitecore\ListManagement\Sitecore.ListManagement.Services.config". So the below code does not work. To Store the data into ListManger From the CD server You need to utilize EXM Client API on the CD server as shown below. Hope the above clarifies and works for you guys... Thanks, Varun Allada