COQL Query in Events with What_Id and Join
"select_query": "select 'What_Id->!Leads.Last_Name' from Tasks where 'What_Id->!Leads.id' = '4150868000004479013'"
}
Below are two identical queries other than adding the What_Id->Leads.First_Name field as a returned column. Can anyone support with where I'm going wrong?
Successful Query
queryMap = Map();
queryMap.put("select_query","select What_Id from Events where Event_Title = Test");
info queryMap;
response = invokeurl
[
type :POST
parameters: queryMap.toString()
connection:"coql"
];
info response;
Returns Success and I can see the data
Failed Query
queryMap = Map();
queryMap.put("select_query","select What_Id, 'What_Id->!Leads.Last_Name' from Events where Event_Title = Test");
info queryMap;
response = invokeurl
[
type :POST
parameters: queryMap.toString()
connection:"coql"
];
info response;
Error:
- {"code":"INVALID_QUERY","details":{"column_name":"What_Id->!Leads.Last_Name"},"message":"column given seems to be invalid","status":"error"}
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.