Seems like for field type “radio select” I’m getting the internal value back in the response.. is there any way to get hold of the Label value instead? shown in the photo
No, Only those value selected with you have submitted. But you can try below code for only listing closedwon
<?php
$hapikey = ‘demo’;
$json_data = json_encode([
“filterGroups”=>[
[
“filters”=>[
[
“propertyName” => “dealstage”,
“operator” => “EQ”,
“value” => ‘closedwon’
]
]
]
]
]);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, ‘https://api.hubapi.com/crm/v3/objects/deals/search?hapikey=’.$hapikey);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);
$headers = array();
$headers[] = ‘Content-Type: application/json’;
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$result = curl_exec($ch);
if (curl_errno($ch)) {
echo ‘Error:’ . curl_error($ch);
}
curl_close($ch);
$result = json_decode($result);
print_r($result);
die;
?>
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.
Thanks and Regards.