COQL selecting a column with space, how i can do it?
Hi Zoho Team
I got a problem, when i was programming a Zoho deluge but my query need to use a column name with space, please see the code:
- queryMap = Map();
- queryMap.put("select_query", "select Last_Name, First_Name, Full_Name from Leads where id ="+id+" and 'Form 2' like '%SOMETHING%' ");
- response = invokeurl
- [
- url :"https://www.zohoapis.com/crm/v3/coql"
- type :POST
- parameters: queryMap.toString()
- connection:"coql"
- ];
- info response;
As you can see, i need to query Form 2 (with space, it's a calculate column inside Leads table), but when i try to run, i got the following error:
- {"code":"INVALID_QUERY","details":{"column_name":"Form 2"},"message":"column given seems to be invalid","status":"error"}
So, what's the wrong?, i need to declare the column name using double quote, single quote or other magic way?
Thanks in advance
Pablo
Access your files securely from anywhere
Zoho Developer Community
Deliver unforgettable customer experiences
Deliver unforgettable customer experiences
New to Zoho Marketing Plus?
Everything you need to run your marketing
New to Zoho Marketing Plus?
Everything you need to run your marketing
Zoho Desk Resources
-
Desk Community Learning Series
-
-
-
-
-
-
-
-
-
Zoho TeamInbox Resources
Zoho DataPrep Resources
Zoho CRM Plus Resources
Zoho Books Resources
Zoho Subscriptions Resources
Zoho Projects Resources
Zoho Sprints Resources
Qntrl Resources
Zoho Creator Resources
Zoho Campaigns Resources
Zoho CRM Resources
Zoho Show Resources
Writer Get Started. Write Away!
Writer is a powerful online word processor, designed for collaborative work.