Fetching subform for sales orders modules using COQL
I'm using the sales order module, I am trying to fetch a list of orders that belong to a customerId using COQL. While fetching the order, I am not able to retrieve order items(which is a subform). I am using v3 of coql.I tried using the following thing: Fetching Ordered_Items field in the query. Query - {
"select_query": "select Ordered_Items from Sales_Orders where id is not null"
}
Error:- {
"code": "INVALID_QUERY",
"details": {
"column_name": "Ordered_Items"
},
"message": "unsupported column",
"status": "error"
}
{
"select_query": "SELECT SO_Number, Subject, Grand_Total, Ordered_Items.Product_Name, Ordered_Items.Quantity, Ordered_Items.List_Price, Ordered_Items.Discount, Ordered_Items.Tax, Ordered_Items.Net_Total FROM Sales_Orders WHERE SO_Number = '6244979000000735014'"
}
Error:
{
"code": "INVALID_QUERY",
"details": {
"column_name": "Ordered_Items.Tax"
},
"message": "column given seems to be invalid",
"status": "error"
}
Can you help me fetch sales orders along with the ordered items?
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.