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 Values of System Attributes attached to Incident object using ROQL

Accepted answer
18
Views
1
Comments
edited Dec 5, 2019 12:17PM in Integrations and APIs 1 comment

Summary

System Attributes attached to Incident object using ROQL

Content

HI ,

I am writing object event handle using connect PHP and querying incident object as below to fetch value from a system attribute which is highlighted in RED color.

 

$roql_result_set = RNCPHP\ROQL::query("SELECT Incident.ID ID, Incident.PrimaryContact.ParentContact.ID CID, Incident.CustomFields.CO.ParentIncident CHILD FROM Incident WHERE Incident.ID = " . $object->ID); 

 

This query works fine Connect object Explore ( ROQL Editor in Customer Portal),

The same is not working in Connect PHP in below mentioned code.

                while ($roql_result = $roql_result_set->next())
                {
                    while ($row = $roql_result->next())

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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