Skip to main content

Posts

Save contacts into List using Marketing automation and Forms

Save contacts into List using Marketing automation and Forms   Marketing automation is a very powerful tool of Sitecore, it provides a facility to create an automated online campaign with a user-friendly drag and drop interface. You can use Marketing automation to add contacts into List from Sitecore 9 Forms instead to create new custom submit action. In this blog, we are going to trigger goal on form and using Marketing automation we are going to add contacts into list when the goal will be a trigger. Prerequisites Create one Goal let’s say “ FormGoalTrigger ” and deploy it. You can refer this link to create Goal. Go to List Manager and create “ Empty Contact List ” with name “ FormList ”. You can refer this list to create List. To save contacts into List, contact must be in xDB, this can be done to create custom submit action to update contact using First Name, Last Name ,and Email. You can take reference from here https://doc.sitecore.com/developers/91/sitecore

Unknown connection string. Name: '$(1)' – Sitecore 10.1 Unicorn Error

Unknown connection string. Name: '$(1)' – Sitecore 10.1 Unicorn Error If you are facing issue of “Unknown connection string. Name: '$(1)'” in Sitecore 10.1 then you can resolve this issue by changing in this config file “Unicorn.DataProvider.config”. <databases> <database id="master"> <dataProviders> <dataProvider ref="dataProviders/main"> <patch:attribute name="ref">dataProviders/unicorn</patch:attribute> </dataProvider> </dataProviders> </database> <database id="core"> <dataProviders> <dataProvider ref="dataProviders/main"> <patch:attribute name="ref">dataProviders/unicorn</patch:attribute> </dataProvider> </dataProviders> </database> </databases> With this <d

Unexpected error processing reply from import status service: TypeError: Cannot read property 'forEach' of undefined

Error : “Unexpected error processing reply from import status service: TypeError: Cannot read property 'forEach' of undefined” Reason : Incompatibility of a version of JSS with Sitecore version. Sitecore JavaScript Services modules compatibility with Sitecore XP Solution : Create a JSS app using release/VersionX.X.X, Like if you are using Sitecore 9.3 then use the below command. jss create firstjssproject react --branch release/13.0.0 OR jss create firstjssproject react --b release/13.0.0

Sitecore Solr Auto Suggester on Multiple Field

Sitecore Solr Auto Suggester on Multiple Field  In the last blog , we have created Solr auto suggester functionality on a single field. Now in this blog, we are going to discuss how we can display results in suggest component on basis of multiple fields value, suppose you have one field Title and another is a Tag and now when user search any word it will search result on both Title and Tag fields. To do this, add multiple dictionaries like below for contentSuggester and tagSuggester field. <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">contentSuggester</str> <str name="lookupImpl">AnalyzingInfixLookupFactory</str> <str name="dictionaryImpl">DocumentDictionaryFactory</str> <str name="field">title_t</str> <str name="contextField">_template</str>

Solr Auto Suggester With Sitecore

Solr Auto Suggester With Sitecore What is a Solr Suggester? The Solr suggester component provides automatic suggestions to users, just like Google provides suggestions. Solr has a suggester component which is called SuggestComponent. More detail is available here Configuration the SuggesterComponent Navigate to this location “SolrFolder\server\solr\configsets\INDEXNAME \conf” and open “solrconfig.xml”. Search below comment in “solrconfig.xml” file. <!-- SearchHandler http://wiki.apache.org/solr/SearchHandler For processing Search Queries, the primary Request Handler provided with Solr is "SearchHandler" It delegates to a sequent of SearchComponents (see below) and supports distributed queries across multiple shards --> and paste the below code: <searchComponent name="suggest" class="solr.SuggestComponent"> <lst name="suggester"> <str name="name">contentSu

Setup Sitecore JSS application

Setup Sitecore JSS application Before starting to create JSS application, we need to understand what is a Sitecore JSS. What is a JSS Sitecore JavaScript Services (JSS) is a complete SDK for JavaScript developers that enables you to build full-fledged solutions using Sitecore and modern JavaScript UI libraries and frameworks. Sitecore JSS support Angular, React and Vue JavaScript framework. How to create a JSS application? Firstly, to develop a JSS application, Node needs to be installed into your system. Install the JSS Command Line Application CLI makes it easy to create a new project, scaffold components, deployment of your JSS application, etc. To installed CLI globally, run below command in the command prompt: npm install -g @sitecore-jss/sitecore-jss-cli Create a JSS application To create a JSS application, need to follow the below steps: Create a folder with any project name In project folder, run jss create <your-app-name>

Sitecore JSS create your first component

Sitecore JSS create your first component  In the previous blog , JSS setup has been done. Now it’s time to create your first component, apply the newly created component into a route and test it in disconnected mode. Scaffold the component To scaffold new component, JSS sample app providing a script which allows you to scaffold new component easily. This script is available in “/scripts/scaffold-component.js” you can customize it as per your requirement. Run below command to scaffold component, type jss scaffold and your component name like HeroBanner. This command will generate all files which are required. jss scaffold HeroBanner After the scaffold HeroBanner component you can see below files has been added into your JSS application: /sitecore/definitions/components/HeroBanner.sitecore.js /src/components/HeroBanner/index.js HeroBanner.sitecore.js will contain template name, icon, fields by default.  index.js will contain view of HeroBanner com

Sitecore Publishing Service with Sitecore 9.2

Sitecore Publishing Service with Sitecore 9.2 Sitecore publishing service (SPS) 1.1 has been launched with Sitecore 8.2, it is an optional replacement of existing Sitecore publishing. Sitecore publishing service module reduces the time spend on publishing large volumes of items also it improves the user experience. SPS runs outside from the Content Management worker process as it SPS runs separate service and move data from master to web database. When Content Editor does any changes, CM server sends a signal to SPS that what changes had been done, then SPS will calculate a manifest of what needs to be publish. After publishing, SPS will send the signal to CM servers that what has been written so that they can update search indexes and clear affected cache, etc. The module has 2 parts. Sitecore Publishing Service Module Package Publishing Host Service Prerequisite .Net Core Sitecore Publishing Service Package Sitecore Publishing Service Module Ins