Topic by Brian Houlihan
Content
I am having problems adding a primary contact to a new Opportunity from an Addin. I am trying to add the Contact inside the dataloaded event as seen in the included code.
When I look at the Contacts Tab of the bottom of the Opportunity Workspace (as seen in attached image) it appears to have worked fine. I can see it added to the Contacts and it has Primary selected.
However, the Contact field (as seen toward the top of the attached image) is still blank. And when I try to save the Opportunity it throws the following error:
"Without an organization you must add a primary contact for this opportunity"
If I manually select the Contact then everything functions and saves as expected.
Therefore it is my belief that adding the Contact to an Opportunity via Addin code is adding it some funky way where it is only partially added.
Thanks in advance for any help on this matter,
Brian
Version
Feb 2013Code Block
Image
