Skip to main content
12 events
when toggle format what by license comment
Jan 5, 2017 at 3:53 vote accept Mohit
Dec 29, 2016 at 14:31 comment added Dmytro Shevchenko Mohit, have you been able to resolve the issue? If you have any problems with the solution provided below, please point out what haven't worked for you.
Dec 16, 2016 at 20:25 answer added Dmytro Shevchenko timeline score: 3
Dec 16, 2016 at 14:52 comment added Mohit Thanks @DmytroShevchenko. the custom method "UpdateContact" is the place where I actually populate the facets with values. XdbContactManager.TryLoadContact - I am doing this to ensure we have a lock before we call custom method to update facets.
Dec 16, 2016 at 14:45 comment added Dmytro Shevchenko This only brings more questions. 1) I still don't see where you are creating new contacts. 2) What are you attempting to do with this code? 3) Why are you assigning standard fields of the contact, such as contact.System.Classification? 4) When you already have a contact object in currentContact, why are you trying to obtain another contact object from XdbContactManager.TryLoadContact? This doesn't make sense to me... Please answer all of the above questions.
Dec 16, 2016 at 14:40 history edited Dmytro Shevchenko CC BY-SA 3.0
added 107 characters in body; edited tags; edited title
Dec 16, 2016 at 14:35 comment added Mohit updated the post with code
Dec 16, 2016 at 14:35 history edited Mohit CC BY-SA 3.0
added 886 characters in body
Dec 16, 2016 at 14:29 comment added Mohit I mean lockedContact.Identifiers is null.
Dec 16, 2016 at 14:04 comment added Dmytro Shevchenko Also, your code does not show anything related to contact creation that you mention in the question. Could you clarify how and when the creation of new contacts comes into play? Preferably, post all the relevant code that loads, creates and saves contacts.
Dec 16, 2016 at 14:02 comment added Dmytro Shevchenko When you say the "identifier" is null, do you mean lockedContact.ContactId? Or lockedContact.Identifiers.Identifier?
Dec 16, 2016 at 13:50 history asked Mohit CC BY-SA 3.0