Changing the Contact of incident through addin
I want to change the contact of incident through addin. While i write this code, I am getting the attached error.
Anybody having a sample of how to change incident's contact in addin.
IList<IInc2Contact> newContList = new IList<IInc2Contact>; IInc2Contact cont= new IInc2Contact(); cont.Prmry=true; cont.Cid=123456; objIIncident.Contact= newContList;