Quantcast
Viewing all articles
Browse latest Browse all 2504

Adding new Incident to existing Contact (6 Comments)

Topic by Preben Asmussen

I'm looking for a Java example of how to add an new Incident to an existing contact.

 

The example i found BasicCreate.java seems a bit odd

//Create an IncidentContact to add as the Primary Contact on the new Incident
IncidentContact incContact = new IncidentContact();
NamedID contactNamedID = new NamedID();
ID contactID = new ID();
contactID.setId(1);
contactNamedID.setID(contactID);
incContact.setContact(contactNamedID);
newIncident.setPrimaryContact(incContact);
If I assume that contactNamedID is the relation between Incident and Contact - This is hardcoded to 1 ??
 
A example of bulk create of Contact+Incident and create of Incident to existing Contact would be nice.

Viewing all articles
Browse latest Browse all 2504

Trending Articles