public void Process(SessionEndArgs args) { Sitecore.Diagnostics.Log.Info("Calling SyncCrmToXdb.Process", this); if (Tracker.Current != null) { var xdbContact = Tracker.Current.Contact; if (Tracker.Current.Contact.Identifiers.IdentificationLevel == ContactIdentificationLevel.Known) { Sitecore.Diagnostics.Log.Info("The contact is identified - calling CRM to get contact info...", this); var crmContact = CrmConnector.GetInformationFromCrm(xdbContact.Identifiers.Identifier); if (crmContact != null) CrmConnector.SyncCrmToXdb(crmContact); } } }
public void Process(SessionEndArgs args) { Sitecore.Diagnostics.Log.Info("Calling SyncCrmToXdb.Process", this); if (Tracker.Current != null) { var xdbContact = Tracker.Current.Contact; if (Tracker.Current.Contact.Identifiers.IdentificationLevel == ContactIdentificationLevel.Known) { Sitecore.Diagnostics.Log.Info("The contact is identified - calling CRM to get contact info...", this); var crmContact = CrmConnector.GetInformationFromCrm(xdbContact.Identifiers.Identifier); if (crmContact != null) { CrmConnector.SyncCrmToXdb(crmContact); } } } }
public void Process(SessionEndArgs args) { var syncToSalesforceCrm = new TriggerDefPipelineBatch.SyncToSalesforceCrm(); syncToSalesforceCrm.Sync(); }