Topic by ilamukky
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