How to get values from a Subform when use ZDK.Apps.CRM.Sales_Orders.fetchById ( Deluge Client Script)

How to get values from a Subform when use ZDK.Apps.CRM.Sales_Orders.fetchById ( Deluge Client Script)

Hi Folks,
I´m working with two modules Sales Orders and Cases, and I´m needing get from Cases Form the values recorded in the  field product_description located in a subform Product_Details  in Sales Order module to do a comparation .

I´m using  this piece of code to reffer to Sales Order ID and I can access the record, but I need ideas to get the info 

// Get ID de la Orden de Venta Asociada 
var soid = ZDK.Page.getField("Orden_de_Venta_Asociada").getValue();
// Get records from Sales Order ID (soid)
var sales_order = ZDK.Apps.CRM.Sales_Orders.fetchById(soid.id); 



This is the JSON with the data registered in the Sales Order record that I´m using to to the tests.

JSON.stringify with null, 4: {
    "_Owner_Lookup_Id": "6049481000000443001",
    "_Deal_Name_Lookup_Id": "6049481000000863046",
    "_Quote_Name_Lookup_Id": "6049481000000886164",
    "_Contact_Name_Lookup_Id": null,
    "_Account_Name_Lookup_Id": null,
    "_Created_By_Lookup_Id": null,
    "_Modified_By_Lookup_Id": null,
    "_keyModified": {},
    "_$line_tax": [],
    "_Owner": null,
    "_SO_Number": "6049481000000908007",
    "_Subject": "Pedido",
    "_Deal_Name": null,
    "_Customer_No": null,
    "_Purchase_Order": null,
    "_Quote_Name": null,
    "_Due_Date": "2024-01-02",
    "_Pending": null,
    "_Contact_Name": {
        "name": "jhon Doe",
        "id": "6049481000000559052"
    },
    "_Carrier": "FedEX",
    "_Status": "Aprobado",
    "_Account_Name": {
        "name": "Su empresa",
        "id": "6049481000000559049"
    },
    "_Created_By": {
        "name": "Pedro Perez",
        "id": "6049481000000443001",
        "email": "pedro@sp.net"
    },
    "_Proforma": null,
    "_Modified_By": {
        "name": "Jhon Doe",
        "id": "6049481000000443001",
        "email": "pedro@sp.net"
    },
    "_Factura_P_F": null,
    "_Tag": [],
    "_Locked__s": false,
    "_Billing_Street": "A",
    "_Shipping_Street": null,
    "_Billing_City": "B",
    "_Shipping_City": null,
    "_Billing_State": "C",
    "_Shipping_State": null,
    "_Billing_Code": "D",
    "_Shipping_Code": null,
    "_Billing_Country": null,
    "_Shipping_Country": null,
    "_Product_Details": [
        {
            "_product_Lookup_Id": "6049481000000664005",
            "_keyModified": {},
            "_$line_tax": null,
            "_product": null,
            "_quantity": 10,
            "_Discount": 0.32,
            "_total_after_discount": 31.68,
            "_net_total": 31.68,
            "_book": null,
            "_Tax": 0,
            "_list_price": 3.2,
            "_unit_price": 3.5,
            "_quantity_in_stock": 0,
            "_total": 32,
            "_product_description": null
        },
        {
            "_product_Lookup_Id": "6049481000000666071",
            "_keyModified": {},
            "_$line_tax": null,
            "_product": null,
            "_quantity": 15,
            "_Discount": 0,
            "_total_after_discount": 52.5,
            "_net_total": 52.5,
            "_book": null,
            "_Tax": 0,
            "_list_price": 3.5,
            "_unit_price": 0,
            "_quantity_in_stock": 0,
            "_total": 52.5,
            "_product_description": null
        }

Thanks
Fabian




                            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