Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
ROQL query to retrieve custom fields — Cloud Customer Connect
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

ROQL query to retrieve custom fields

Accepted answer
15
Views
3
Comments
edited Jun 8, 2022 12:00PM in General Technical Discussions 3 comments

Content

Hello,

what can be wrong with this query to retrieve some answer custom fields? It runs without errors, but the fields are returned empty.

 

$query = sprintf("select A  from Answer A where A.ID = ".$answer->ID);
$roql_result = RNCPHP\ROQL::QueryObject($query )->next();
$row = $roql_result->next();
if($row)
{
                $majorChange = $row->CustomFields->c->major_change;
                $workflowStatus = $row->CustomFields->c->workflow_progress;
 }

Thanks

Version

Feb2015

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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