Skip to content

Instantly share code, notes, and snippets.

@islaytitans
Created January 20, 2016 07:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save islaytitans/95f4d8a66bab8a83b888 to your computer and use it in GitHub Desktop.
How to save to Sitecore xDB immediately
ContactManager contactManager = Sitecore.Configuration.Factory.CreateObject("tracking/contactManager", true) as ContactManager;
contactManager.SaveAndReleaseContactToXdb(contact);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment