ROQL query Contact Phone Type
Summary
query returns phone number but not phone type (lookupname)Content
This is the object structure that you get from this REST resource:
https://myorg.com/services/rest/connect/v1.4/contacts/905/phones/1
{
"number": "305582xxxx",
"phoneType": {
"id": 1,
"lookupName": "Secondary Phone:"
},
"rawNumber": "305582xxxx",
...
I am running the following query but am getting only the rawnumber, not the lookupName
$roql_result_set = RNCPHP\ROQL::query( "SELECT Phones.* from Contact where ID = ".$id)->next();
while ($row = $roql_result_set->next()) {
print_r("Phone: ".$row["RawNumber"]." PhoneType = ".$row["lookupName"]." "."<br />");
}
ALSO TIED
while ($row = $roql_result_set->next()) {
print_r("Phone: ".$row["RawNumber"]." PhoneType = ".$row["
print_r("Phone: ".$row["RawNumber"]." PhoneType = ".$row["
0