You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

CPM: Array of Contact Objects on a particular Opportunity

Received Response
edited Sep 6, 2016 1:05AM in Integrations and APIs 7 comments



I'm writing a CPM to update fields on all of the other contacts (non-primary) on the opportunity that was updated. My code works perfectly if I specify the Contacts I want  $second_contacts = array(RNCPHP\Contact::fetch(20259), RNCPHP\Contact::fetch(13083))  but I can't seem to obtain an array of the contact objects (or even Contact ID's) from the OtherContacts.

It seems simple enough but I can't seem to be able to accomplish it. Could it be that OtherContacts are an OpportunityContactArray?

Any help would be appreciated!

Thank you.


Service Cloud November 2015

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!