Skip Navigation
Expand
Objects, ROQL and the custom process
Answer ID 6705   |   Last Review Date 07/22/2019

Why is the $obj empty on a ROQL query used in a custom process?

Environment:

Process Designer, Custom Process Model (CPM) / Service Process Model (SPM)
November 2012 version and newer

Resolution:

ROQL queries and the object event handler:

$obj-> should return the values for any changed fields

$obj->prev should contain all the values that were fetched before the object was updated.

 

On a create there is no "prev" data. $obj should contain values for all fields that were provided to the create.