6

We faced the same issue and raised Sitecore support ticket for the same and we get to know that if you try to hit from Postman, need to remove user-agent from postman headers like below - https://www.screencast.com/t/K0BiMxHv This was only happening on Sitecore 9.3, in Sitecore 9.0.2 it was working fine for us. Also, I wrote a blog about this you can check ...


5

Ones you want to extend your contact model with the facet above, a code will look like below: JobPreference model: using System; using Sitecore.XConnect; using Sitecore.XConnect.Schema; namespace {your-namespace} { [Serializable] public class JobPreference { public JobPreference(Guid jobId, string jobName, int priorityValue) { ...


4

NOOOOOOOO Under most circumstances this is a horrible idea. The reason is if you change from a string to a bool or a string to an int, when the Newtonsoft deserializer runs in xConnect, it will result in this error. Sitecore.XConnect.Operations.DependencyFailedException: One or more dependencies failed ---> System.InvalidCastException: Specified cast is ...


3

What you're trying to do is identifying Sitecore Contact, you first need to identify contact using a unique value like email address from user profile in your case, as: Sitecore.Analytics.Tracker.Current.Session.IdentifyAs("sitecoreextranet", "myrtlesitecore"); Following is Sitecore 9.1 documentation for identifying a contact: https://doc.sitecore.com/...


3

Is this in Sitecore Context or outside the context (aka a raw call to xConnect) In Sitecore Context Habitat has a good example of this https://github.com/Sitecore/Habitat/blob/2d3ee809fa4035a46a410d0438ed41e1c7f8a3b1/src/Foundation/SitecoreExtensions/code/Services/TrackerService.cs#L100 OutcomeDefinitionManager comes from DI IDefinitionManager<...


2

Thanks to the Sitecore Support team for helping. In case someone else also gets into this issue: xConnect has the following configuration: <ICalculatedFacetHandler.InteractionsCacheHandler> <Type>Sitecore.XConnect.Collection.Model.Plugins.InteractionsCacheHandler, Sitecore.XConnect.Collection.Model.Plugins</Type> <As>Sitecore....


2

You are going to want to run this code in the users session. Like a button click. private static void ProcessProfile(Sitecore.Data.Items.Item profileItem) { // update the tracker var profile = Tracker.Current.Interaction.Profiles[Constants.Profile.IndustryName]; var scores = new Dictionary<string, double> { { ...


2

The list that you included in your question is the full list of EXM ootb tokens. The list can be found here: https://doc.sitecore.com/users/exm/90/email-experience-manager/en/insert-a-token-in-a-message.html You cannot use any other facet data without custom coding. If you want to add your custom tokens, you need to overwrite recipientPropertyTokenMap ...


2

You need to perform the below steps to achieve this: Create a Custom Facet Model Register the Custom Facet Model Deploy Custom Facet model to XDB Add it to the Sitecore.XConnect.Client.Configuration Please refer below both the blogs and verify if you missed anything. Create Custom Facet Model in Sitecore 9 Work with Custom Facet in Sitecore 9 Let me ...


1

The schema that you specified does not match the JSON that is on xConnect. Have you built the BuildModel correctly? public class RegistrationDataModel { public static XdbModel Model { get; } = BuildModel(); private static XdbModel BuildModel() { var modelBuilder = new XdbModelBuilder("RegistrationDataModel", new XdbModelVersion(1, 0)); ...


1

If your forms are in AJAX mode, your issue is going to be that tracker is configured to not run on Forms Ajax mode. Not sure why. At the top of your code, add this. if (Tracker.Current == null && Tracker.Enabled) { Tracker.StartTracking(); } Then do your normal xConnect code var firstNameField = GetFieldById(data.FirstNameFieldId, ...


1

Well, you spend 6 hours investigating. Post the question and 30 minutes later figure it out. The culprit was in the call to the xDBRuntimeModel. I was NOT passing in the custom models. Previous code was: var cfg = new XConnectClientConfiguration( new XdbRuntimeModel(CollectionModel.Model), collectionClient, searchClient,...


1

You need to deploy it again after changing the data type. Deploy custom Facet model to XDB To Deploy the custom facet model to XDB you need to serialize the collection model in which you defined your custom facet model. To serialize into JSON prefer Console application to generate the JSON file. class Program { static void Main(string[] args) { ...


Only top voted, non community-wiki answers of a minimum length are eligible