Fetching subform for sales orders modules using COQL

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 - 
  1. {
    "select_query": "select Ordered_Items from Sales_Orders where id is not null"
    }      
      Error:
  1.      {
    "code": "INVALID_QUERY",
    "details": {
    "column_name": "Ordered_Items"
    },
    "message": "unsupported column",
    "status": "error"
    }
 
   I also tried using joins following the link - https://www.zoho.com/crm/developer/docs/api/v3/COQL-Overview.html#joins

Query:
  1. {
    "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:
  1. {
    "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?

      Zoho Developer Community









                                Zoho Desk Resources

                                • Desk Community Learning Series


                                • Digest


                                • Functions


                                • Meetups


                                • Kbase


                                • Resources


                                • Glossary


                                • Desk Marketplace


                                • MVP Corner


                                • Word of the Day



                                    Zoho Marketing Automation


                                            Manage your brands on social media



                                                  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 WorkDrive Resources



                                                                      Zoho Campaigns Resources


                                                                        Zoho CRM Resources

                                                                        • CRM Community Learning Series

                                                                          CRM Community Learning Series


                                                                        • Tips

                                                                          Tips

                                                                        • Functions

                                                                          Functions

                                                                        • Meetups

                                                                          Meetups

                                                                        • Kbase

                                                                          Kbase

                                                                        • Resources

                                                                          Resources

                                                                        • Digest

                                                                          Digest

                                                                        • CRM Marketplace

                                                                          CRM Marketplace

                                                                        • MVP Corner

                                                                          MVP Corner





                                                                            Design. Discuss. Deliver.

                                                                            Create visually engaging stories with Zoho Show.

                                                                            Get Started Now