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

How to get the custom Yes/No field value using CPHP (21 Comments)

$
0
0

Topic by Mohana Gopal Selvam

Hi Gurus,

We have created the custom Yes/No field in Incident object. We have to fetch the value in CPM. I have tried the following codes. But it returns null value for all variables. Please let me know the correct code. 

     $sendsms = $incident->CustomFields->c->send_sms;
     $sendsmslookupname = $incident->CustomFields->c->send_sms->LookupName;
     $sendsmsvalue = $incident->CustomFields->c->send_sms->Value;
     $sendsmslookuname = $incident->CustomFields->c->send_sms->Name;
     print($sendsms);
     print($sendsmslookupname);     
     print($sendsmslookvalue);
     print($sendsmsname);

Thanks,

Mohan


Viewing all articles
Browse latest Browse all 2504

Trending Articles