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

How to get the Primary contact id

Received Response
50
Views
3
Comments
edited Jun 8, 2022 12:02PM in General Technical Discussions 3 comments

Content

Hi Gurus,

How to get the primary contact Id using connect php api. I tried the following code in CPM test harness block. It returns empty value. 

$inc = RNCPHP\Incident::fetch(9090);

 print("Incident Primary Contact: ".$inc->PrimaryContact->Contact->ID);

 

Thanks,

Mohan

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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