In Next.js, we can convert a string into a Sitecore data type. Sitecore typically stores data in fields with specific data types such as Single-Line Text, Rich Text, Date, Boolean, etc. Identify Sitecore field type and use the appropriate data type in your Next.js code to represent the Sitecore field.
SITECORE HEADLESS – Component Integrated GraphQL Query
Sometimes we may need to use Component GraphQL Query – we might read data from datasource or context item. For example, we need to create a Publish date component that will get the data from the datasource but if there is no datasource it will read the data from context item. Continue Reading
Sitecore EXM- Couldn’t lock the item
Recently we encountered a warning message “Couldn’t lock the item LHSImage RHSCopy 2” when we changed an image of a custom email and click the save button. We have several custom Sitecore EXM email templates and most of them consist of few custom Sitecore components. “LHSImage RHSCopy 2” is one Continue Reading
PowerShell scripts to get Sitecore User information
Sometimes we might need to get Sitecore user information in detail. The information might not find in the same place. Different scrips might be handy to extract different information. Get user id, user domain, and if the user is an adminScript: Output: Get user rolesScript: Output: Get all propertiesScript: Output: Continue Reading
Email dispatch issue – Sitecore EXM
Recently we faced an interesting Sitecore EXM issue. We can create an email with a name of 100 chars long. The default maxLength is 100. Once we create the email, we can find it in the content tree with the same name. During this process, there is no error. However, Continue Reading
On Sitecore item publish, update a single record in the index
Recently we faced an interesting problem. We were updating a Sitecore item field but after publish that was not reflecting in the search results. Our search results are coming from the index. If we rebuild the index then it was getting updated. But we have thousands of items in the Continue Reading
Send alert when Sitecore running jobs get stuck
Recently we faced one issue in production that Sitecore job hangs or gets stuck. This issue is blocking other jobs and all our search index re-build jobs were in the queue. End users were not getting optimal search experience and our latest published content was not showing on the live Continue Reading
Programatically resume paused email – Sitecore EXM
When an email campaign is dispatched, it moves through a number of states (Draft, Queuing, Sending, and Sent). If an error occurs during dispatch and the IIS server is interrupted, the email campaign is not moved to the Sent state. Instead, it is moved to the Paused state and the Continue Reading
Sitecore 9 Experience profile common error
Recently I have set up Sitecore 9.1 (scaled) for our UAT environment. While I was browsing the experience profile from the launchpad I was getting an error and no-data were displaying in the dashboard. And in the CM log I found the following: I searched in the internet and found Continue Reading
Remove Sitecore users in bulk
Sometimes we might need to clear old users / specific domain users. We can do this job from the Sitecore User Manager and remove them one by one. But if the number of users is more then it will be a tedious job. We can do it in bulk using Continue Reading