Skip to main content

Posts

Featured post

XM Cloud content sync from prod to uat or UAT to prod step by step

When working with Sitecore, it’s common to need content synchronization across environments. Today, I’ll walk you through the steps to sync content from Production to UAT/TEST and vice versa. Steps to Follow 1. Set Up Your Workspace Create a folder on your computer where you will manage the script files and exported data. Open the folder path in PowerShell to begin scripting. We need to run some scripts in PowerShell to update the folder with the basic requirements for syncing content. PS C:\Soft\ContentSync> dotnet new tool-manifest PS C:\Soft\ContentSync> dotnet nuget add source -n Sitecore https://nuget.sitecore.com/resources/v3/index.json PS C:\Soft\ContentSync> dotnet tool install Sitecore.CLI PS C:\Soft\ContentSync> dotnet sitecore cloud login If the above error occurs, you will need to run a different command to resolve the issue. PS C:\Soft\ContentSync> dotnet sitecore init now, Again run above command to open and authenticate with XM Cloud. It will be there a...

how to fix Sitecore JSS Experience Editor Issue in branch template

 We can fix the branch template experience editor by using below config changes. sitecorePath - change the branch template folder path folder need to create by using template -  /sitecore/templates/Foundation/JavaScript Services/App   <app role:require="Standalone or ContentManagement" name="branchTemplateApp"                      filesystemPath="/dist"                      sitecorePath="/sitecore/templates/Branches/Newbranch"                      useLanguageSpecificLayout="true"                      graphQLEndpoint="/api/branchTemplateApp"                      inherits="defaults" /> role:require="Standalone or ContentManagement": This attribute specifies the roles required to access the app. In ...

PowerShell script to migrate content in Sitecore while taking specific item from CSV File

It's easy to read CSV file and migrate list of item which is specified in csv file. Upload CSV file at media item location . You can see below url which have mentioned. $url = "https://tst-cdn.domain.net/-/media/domain/temp/ItemName.ashx?x=1" $data = Invoke-WebRequest -uri $url  -UseBasicParsing | Select-Object -Expand Content $TargetLangs = @("zh-cn","zh-hk","fr","de","it-it","es-es","th-th") $csv = ConvertFrom-Csv $data $sourceItemPath = "master:\sitecore\content\SLA\corporate\" $destinationItemPath = "master:\sitecore\content\Shared Pages\Shared Press Releases\Corporate\" $templateId = "{7B0B5195-5462-444E-8D5A-40941F2EC9B5}" Write-Host "Get the source items and their fields" ForEach ($csvItem in $csv)  {     $increment=$increment+1     $csvItemName = $csvItem.URL.Replace("-"," ")     if($csvItemName)     {          $sourceItem = Get-ChildIt...

Sitecore computed field implementation and uses

  In Sitecore, computed fields can be implemented using the ContentSearch API. Computed fields allow you to dynamically generate values for fields based on custom logic or calculations. Here's an overview of how computed fields can be implemented and their common uses in Sitecore: Implementation of Computed Fields in Sitecore: 1.     Define a computed field class: Create a class that inherits from the Sitecore.ContentSearch.ComputedFields.IComputedIndexField interface. This class will contain the logic to calculate the computed field value. 2.     Implement the ComputeFieldValue method: Override the ComputeFieldValue method from the IComputedIndexField interface in your computed field class. This method receives an IIndexable object, which represents the item being indexed, and returns the computed field value. 3.     Implement the logic: Inside the ComputeFieldValue method, write the logic to calculate the computed field v...

sitecore item fr-be version failed to publish but able to publish en language in sitecore

 There could be a few reasons why the fr-be version of the Sitecore item failed to publish while the en version was successful: Check the publishing restrictions: It is possible that the fr-be version of the item has publishing restrictions applied to it, preventing it from being published. Check the item's workflow and security settings to see if there are any restrictions that may be preventing the item from being published. Check the publishing targets: It is also possible that the fr-be version of the item is not associated with the correct publishing target. Make sure that the fr-be version is associated with the appropriate target, and that the target is enabled and set up correctly. Check the language settings: Ensure that the fr-be language version is enabled in the Sitecore instance and that the language version is set up correctly. If the language version is not set up correctly, it may not be able to be published. Check the version history: It is possible that there may ...

How to Setting up local development environment with XM Cloud and containers

   To set up a local development environment with XM Cloud and containers, you will need to follow these steps: Install Docker: Docker is a containerization platform that allows you to run applications in isolated containers. Install Docker on your local machine. Install Docker Compose: Docker Compose is a tool that allows you to define and run multi-container Docker applications. Install Docker Compose on your local machine. Create a Docker Compose file: Create a Docker Compose file that defines the services you want to run. In this case, you will need to define a service for XM Cloud. Configure XM Cloud: In the Docker Compose file, configure the XM Cloud service by defining the necessary environment variables, such as your XM Cloud API key and secret. Build the containers: Build the containers by running the "docker-compose build" command. This will create a Docker image for the XM Cloud service. Start the containers: Start the containers by running the "docker-compose...

How to Setting up an XM Cloud environment and project ?

   Setting up an XM Cloud environment and project requires the following steps: Sign up for an XM Cloud account: To use XM Cloud, you will need to sign up for an account on their website. You can choose between a free trial or a paid subscription. Create a project: Once you have signed up, you can create a new project in the XM Cloud dashboard. A project represents a set of resources and configurations that are used to manage your customer interactions. Configure your project: You can configure your project by defining settings such as the messaging channels you want to use, the language and region settings, and any other custom settings you need. You can also configure integrations with other systems, such as your CRM or marketing automation platform. Create a conversation flow: A conversation flow is a series of messages and interactions between a customer and your business. You can create conversation flows in XM Cloud using a visual flow designer that allows you to drag an...

XM Cloud Architecture

   XM Cloud is a cloud-based service that provides businesses with tools and solutions for improving their communication and collaboration with customers. The XM Cloud architecture is designed to be scalable, reliable, and secure, ensuring that businesses can efficiently and effectively manage their customer interactions. Here are some key components of the XM Cloud architecture: Cloud Infrastructure: XM Cloud is built on top of cloud infrastructure provided by leading cloud providers such as Amazon Web Services (AWS) and Microsoft Azure. This provides scalability and reliability, ensuring that businesses can easily scale up or down as needed and that the system is always available. Microservices: XM Cloud is built on a microservices architecture. This means that the system is broken down into small, independent services that can be easily deployed and scaled. This architecture allows for greater flexibility and agility, enabling XM Cloud to adapt to changing customer needs qu...

Why XM Cloud?

   XM Cloud is a cloud-based service that offers a range of tools and solutions for businesses to improve their communication and collaboration with customers. Some of the benefits of using XM Cloud include: Increased efficiency: XM Cloud allows businesses to automate their communication processes, reducing the time and resources required to interact with customers. Improved customer experience: With XM Cloud, businesses can offer personalized and timely communication to their customers, improving their overall experience with the brand. Real-time analytics: XM Cloud provides businesses with real-time data and analytics to monitor and analyze customer interactions, allowing them to make data-driven decisions to improve their services. Flexibility and scalability: XM Cloud is a flexible and scalable solution, allowing businesses to customize their communication strategies to meet their specific needs and scale up or down as required. Overall, XM Cloud can be a valuable tool for...

what is the use of Icmpenum ?

  Icmpenum is a network reconnaissance tool that uses ICMP messages to identify hosts on a network and determine which ones are live and reachable. It sends out ICMP packets to a range of IP addresses and examines the responses to identify active hosts. Here are some of the uses of Icmpenum: Network scanning: Icmpenum can be used to scan a network and identify which hosts are active and reachable. This can be useful for network administrators who want to maintain an inventory of devices on their network or security professionals who want to identify potential targets for further scanning or testing. Host discovery: Icmpenum can help you identify hosts that are hidden or not responding to other types of network probes. By sending out ICMP packets and examining the responses, it can identify hosts that might not appear in other types of network scans. Troubleshooting: Icmpenum can help you identify network connectivity issues by determining which hosts are live and reachable. If you ...

How to use HPING2 ?

  HPING2 is a command-line network packet manipulation and analysis tool that can be used for a variety of purposes such as testing firewall rules, probing hosts for open ports, and crafting custom packets. Here's how to use HPING2: Install HPING2 on your computer. You can download it from the developer's website or from a trusted software repository. Launch a terminal or command prompt and navigate to the directory where HPING2 is installed. Enter the HPING2 command followed by the target host and the type of packet to send. For example, to send an ICMP echo request to the host "192.168.0.1", enter the following command:           hping2 192.168.0.1 -1           The "-1" option specifies the type of packet to send, which in this case is an ICMP echo                     request. You can also use HPING2 to scan for open ports on a target host. For example, to scan ...