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 can I retreive the Primary Contact of a ticket with Connect PHP?

Received Response
15
Views
1
Comments
edited Oct 16, 2019 12:42AM in Integrations and APIs 1 comment

Summary

How can I retreive the Primary Contact of a ticket with Connect PHP?

Content

Hi community,

I am trying to retreive the contact from the sample ticket on my process designer script, but I get the error "trying to get property of non-object" for most attempts, for others it just doesnt print anything (and I believe the contact is required while creating the ticket so it could not be null, right?.

Thanks for helping!!

EDIT

Solution:

$contact = $inc->PrimaryContact->LookupName;

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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