Posts

Working with Device Detection Module in Sitecore

Image
  What is Device Detection in Sitecore? Sitecore has an in-built feature called Device Detection which helps to detect at which device the content is shown into. When I say in-built that means its included as a standard feature in Sitecore XP 9.0 and later. This feature is also present in Sitecore XM Cloud , hence you do not need to buy a separate add-on or module to utilize device detection features.   The information gather from Device Detection Module can help content makers, allowing them to tailor the website experience based on the device type they are accessing it with, such as by displaying different layouts or content depending on screen size and capabilities. For Example, An iPhone and Android users might be looking at different content on same page.   Moreover, developers uses the same mechanism to personalize the components based on the device specific audience. They can setup Device Layout based on specific device parameters or can use the in-built rules...

Snapshot about MY Contribution to Sitecore 2024

Image
As we are approaching the end of Sitecore MVP program for the year 2024, I wanted to highlight my contributions done for Sitecore community. I am feeling grateful to the experiences which I have gained by enrolling myself into this program.   Let's have a look at my 2024 contributions and upcoming plans for 2025. Blogpost: My focus was to write the blogs in a simple, though impactful manner so that I can cover those issues which I have faced while doing actual implementation in the projects. So that’s the reason behind covering both traditional Sitecore 10 and XM Cloud concepts. In whole I have written 7 blogs, which could seem less but tried to explain in a manner that can be helpful to the community. The list goes below:   April 14, 2024 Title: Conversion Pipelines in Sitecore Link: https://arjunarora-sitecore.blogspot.com/2024/04/conversion-pipelines-in-sitecore.html April 20, 2024 Title: Setup A/B Testing in Sitecore - Part 1 Link: https://arjunarora-sitecore.blogspot.com/...

Working with Webhooks in Sitecore - Part 2

Image
In my previous blog , we discussed the concept of Webhooks. In this blog, we will set up a simple webhook in Sitecore.   To understand the implementation better I have kept the things very simple. So in this example, I will be using No Authorization Item. Talking about it in brief then, you need to set up an Authorization item if your endpoint webhook requires Authentication. Although I would strongly recommend to use Authorization to keep your endpoint safe and secure in real scenarios.   Webhook authentication types   Currently in Sitecore, there are 5 types of Authentication available. 1.  Basic : This requires username and password fields. 2.  Digest : This requires username and password fields. 3.  API Key : This requires Key, Value and Add to fields. 4.  OAuth2.0 Client Credentials Grant : This requires Authority URL, Client ID, Client Secret, Scope, Header Prefix (The default value is Bearer), Additional endpoint base addresses fields. 5.  ...

Working with Webhooks in Sitecore - Part 1

Image
  Working with Webhooks in Sitecore - Part 1 In this blog we will understand the concept of Webhooks and how we can use them in Sitecore. So before jumping into Webhooks in Sitecore, first lets understand what webhooks are?   What is a Webhook? They are typically created to connect/link different applications. They are much like API but different from them. Webhooks are one way that apps can send automated messages or information to other apps.   Consider an example below:     Suppose, there is a user facing front application which showcase the product catalogs to its customers. This application is responsible for booking an order from its users. BUT the logistics is handle by different application.   The second application (logistic app) has setup a webhook which is exposed over http and waiting to receive any confirmed orders. Once someone place any order which can be called as an event for the first application, then along with its operation it is passin...

Creating custom value providers in Sitecore Forms

Image
  Creating custom value providers in Sitecore Forms   In this blog we will see how we can use the Custom Value providers in Sitecore Forms. Basically, I will be creating a custom value provider which can be used to pre-fill the field(s) in the Sitecore Form. Actual Use Case:   Suppose you have created a News Subscriber Form, in which a Logged in user can subscribe for newsletters from you company. In that form, you wanted to pre-fill the Firstname and Lastname fields so that user can see their details (although can change the values as well) prior submitting the request. To re-fill or populate the fields, we can create our own custom value provider which will return the value based on parameter value set for that particular field. In short, while loading the Sitecore form, the request will attach to backend code, from which you can return the user model values fetched from XConnect or any other API or database table directly to the form field. To understand it better, let...