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

Get Answer ID through Answer custom field value

Accepted answer
16
Views
3
Comments
edited Nov 1, 2016 2:28PM in UI Extensibility 3 comments

Content

We have written a query in attempts to get the Answer ID by the value of a custom field in Answer.

The attached query does not work for us, we have tried both query and queryObject methods to no avail. Any advice would be appreciated!

Version

FEB 2016

Code Snippet

             $string = "some custom field value";
   $AnswerId = RightNow\Connect\v1_2\ROQL::queryObject("SELECT Answer.ID FROM Answer WHERE (CustomFields.c.custom_field_name='".$string."')")->next(); 
        

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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