You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to get the custom Yes/No field value using CPHP

Accepted answer
4
Views
22
Comments
edited Nov 30, 2015 12:49PM in Integrations and APIs 22 comments

Content

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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!