We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
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

Cannot Use Column Within Where Clause For Custom Object

Accepted answer
11
Views
8
Comments
edited Jun 13, 2016 1:12PM in General Functional Discussions 8 comments

Content

Hi,

I have create one custom object which store policy name and its description. I am using ROQL to fetch records with WHERE clause but unable to get records.  Here is the ROQL query I am using

SELECT * FROM CO.policies  where policy_description LIKE 'personnel'

I am getting error message Cannot use column within WHERE clause: 'policy_description'  

Actually I am trying to save policy id into another custom object after this search query. I go through online manual for ConnectPHP. According to them, I need to create relationship with Standard object i.e. Incident to get column name in where clause but not working fine for me.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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