Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

Using Incident.Contact Inc2Contact fails when updating a new (unsaved) Incident

$
0
0

Topic by Jared

Content

This code works fine in our Feb 13 site but fails in August 13 and newer:

List<IInc2Contact> ContactsList = new List<IInc2Contact>();
if (incident.Contact.Count == 0) {
    Inc2Contact NewContact = new Inc2Contact();
    NewContact.Cid = contactId;
    NewContact.Prmry = true;
    ContactsList.Add(NewContact);
    incident.Contact = ContactsList;
}

This is after DataLoaded. I tried a dozen ways of using Refresh, Save, anything I could think of to wrestle the Contact into the Incident, but none of these worked. SOAP reports no errors, and if I step through the code and look at the data, it's correctly updating the incident object, but the Contact never appears in the workspace.

This is code that has worked fine for years. Do you have ideas about how to approach this?

Thanks

Version

August 2013 and above

Viewing all articles
Browse latest Browse all 2504

Trending Articles