Quantcast
Viewing all articles
Browse latest Browse all 2504

Process Designer - ObjectEvent Handlers (6 Comments)

Topic by Ashok Godishala

I am writing code in Object event handlers and want to get the Inicident fields like Queue, Category Id, Primary Contact from Incident That I create from agent desktop

As Queue is NamedID field and Category is a NamedIDHierarchy Field, I don't know how to write coe to get these fields based on the Ref number of the Inicident that I create

I need to use there fields to pass in to CURL PHP.

I am using below code to get ReF number of the Inicident and using in an ROQL query

$CaptureRefId  is getting the Ref number

$CaptureRefId = $object->LookupName;

$resultSet= RNCPHP\ROQL::query("SELECT Queue.LookupName FROM Incident where LookupName = '.$CaptureRefId.'")->next();

this query I am not getting the Queue field.

Can anyone please help with the code, Thanks in Advance.

Thanks,

Ashok

 


Viewing all articles
Browse latest Browse all 2504

Trending Articles