Solution To Load Custom Contact facets data In Sitecore Tracker Current Contact Object

 

Issue:

Unable to load the custom contact facets data  in the current tracker but it was available in the  Xdb.



Solution:

Assuming that  you all are aware about how to create  custom contact facets. Lets the DefaultFacetKey of your custom contact facet is "Score"

Create  a patch file  :In the mentioned below patch file, there is a Tag called facet with attribute facet key. Please update the value with the your custom  contact facets DefaultFacetKey value i.e  "Score".If you have more then one custom contact facet please add one more tag of the the facet   and change the facet key value

<?xml version="1.0" encoding="utf-8"?>


<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:marketingDefinitionsAssignment="http://www.sitecore.net/xmlconfig/trackingMarketingDefinitionsAssignment/">

    <sitecore role:require="Standalone or ContentDelivery or ContentManagement"

 

        <dataAdapterManager defaultProvider="xconnect">

            <providers>

                <clear/>

                <add name="xconnect" type="Sitecore.Analytics.XConnect.DataAccess.XConnectDataAdapterProvider, Sitecore.Analytics.XConnect">

                    <facets hint="raw:AddFacet">               

                                          <facet facetKey="Score"/>                           

                    </facets>                  

                </add>

            </providers>

        </dataAdapterManager> 

   

    </sitecore>

</configuration>



Comments

Popular posts from this blog

Solrcloud With Zookeeper -Single server setup

Render Sitecore Experience Forms Using Sitecore XP 10.4 with a Headless Approach (Next.js + JSS SDK)

Next.js with XM Cloud EDGE and GraphQL