Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

ROQL query to retrieve custom fields

$
0
0

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

Version

Feb2015

Viewing all articles
Browse latest Browse all 2504

Trending Articles