Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

CPM: Array of Contact Objects on a particular Opportunity (2 Comments)

$
0
0

Topic by Andrew M

Content

Hello,

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.

Version

Service Cloud November 2015

Viewing all articles
Browse latest Browse all 2504

Trending Articles