Edit the SCPbMD profile schema for Sitecore Integration
Abstract
You can integrate the Sitecore Commerce 8.2 powered by Commerce Server and Microsoft Dynamics AX Profile System by using the Sitecore profile system.
Deploy the Integration packages.
Add a new profile property at your Visual Studio solution setup:
Insert a new
add
element below the properties element of the profile section of the web.config.type
is the .NET type of the property.name
is the key that will be used to get or set the property value in the profile.The
customProviderData
value must start withax |
, or the Dynamics Profile Provider will ignore the property. After that, include the full name of the property on the CommerceCustomer profile. The rest of the value after|
can be the type of your custom property.
<profile defaultProvider="switcher" enabled= "true" inherits="Sitecore.Security.UserProfile, Sitecore.Kernel"> <providers> <clear /> <add name="sql" type="System.Web.Profile.SqlProfileProvider" connectionStringName="core" applicationName="sitecore" /> <add name="switcher" type="Sitecore.Commerce.Connect.DynamicsRetail.Profiles.DynamicsSwitchingProfileProvider, Sitecore.Commerce.Connect.DynamicsRetail" applicationName="sitecore" mappings="switchingProviders/profile" /> <add name="ax" type="Sitecore.Commerce.Connect.DynamicsRetail.Profiles.DynamicsProfileProvider, Sitecore.Commerce.Connect.DynamicsRetail" applicationName="sitecore" cacheEnabled="true" cacheTimeout="10" /> </providers> <properties> <clear /> <add type="System.String" name="SC_UserData" /> <add type="System.String" name="ExternalId" customProviderData="ax|ExternalId" /> <add type="System.String" name="FirstName" customProviderData="ax|FirstName" /> <add type="System.String" name="LastName" customProviderData="ax|LastName" /> <add type="System.String" name="Phone" customProviderData="ax|Phone" /> <add type="System.String" name=" PrimaryAddress" customProviderData = " ax|PrimaryAddress " /> <add type="System.String" name=" LoyaltyProgram" customProviderData="ax|LoyaltyProgram|Sitecore.Commerce.Connect.DynamicsRetail.Profiles.LoyaltyProvider, Sitecore.Commerce.Connect.DynamicsRetail" /> <add type="System.String" name="LoyaltyTier" customProviderData="ax|LoyaltyTier|Sitecore.Commerce.Connect.DynamicsRetail.Profiles.LoyaltyProvider, Sitecore.Commerce.Connect.DynamicsRetail" /> <add type="System.String" name="LoyaltyPoints" customProviderData="ax|LoyaltyPoints|Sitecore.Commerce.Connect.DynamicsRetail.Profiles.LoyaltyProvider, Sitecore.Commerce.Connect.DynamicsRetail" /> </properties> </profile>