Topic by Shreyas Pandhari
Content
Hi,
Getting a type mismatch error (please find attached screenshot) while creating an Opportunity record in TestHarness class of custom process. Code snippet is also provided in the code block.
For opportunity record to be created in RightNow, a contact or an organization needs to be associated with an opportunity. So, I am trying to associate a contact here. Similar thing works with the Incident but not working with Opportunity, as in both the cases we need PrimaryContact to be associated.
It seems there is an issue with the type of contact I am trying to associate, not sure what is the issue. If I try associating an Organization like
$obj->Organization->ID = 7;
Though Organization ID is Allowed on Opportunity Create operation, I get: