WIDGET in related record list ZOHO CRM; how to get and put data to subform custom fields?

WIDGET in related record list ZOHO CRM; how to get and put data to subform custom fields?

he need:
Read and write two custom subform line-item fields on Quotes: Segment_wyceny (picklist/text) and W_pakiecie (number).
Write works; read does not return these fields via SDK.


Environment

  • Zoho CRM Widget

  • Zoho Embedded App SDK v1.2

  • Module: Quotes

  • Subform/line items: Product_Details

  • Custom line-item fields: Segment_wyceny, W_pakiecie

  • Test Quote ID: 751364000038706221


What works

  • Creating Quotes with line items using insertRecord

  • Updating line-item custom fields using updateRecord with line_item_custom_fields

await ZOHO.CRM.API.updateRecord({ Entity: 'Quotes', APIData: { id: NEW_QUOTE_ID, Product_Details: [ { id: LINE_ITEM_ID, line_item_custom_fields: [ { api_name: 'Segment_wyceny', value: '...' }, { api_name: 'W_pakiecie', value: 2 } ] } ] } });

What doesn’t work (reading)

  • getRecord does return Product_Details, but the returned line items do not include the custom fields

  • No line_item_custom_fields array; fields like Segment_wyceny / W_pakiecie are missing

  • Even when explicitly requested via fields


Attempts

  1. Plain getRecord
    ZOHO.CRM.API.getRecord

  2. getRecord with fields on subform

    ZOHO.CRM.API.getRecord({ Entity: 'Quotes', RecordID: '751364000038... })
  3. getRecord with fields on main record (sanity check)

    ZOHO.CRM.API.getRecord({ Entity: 'Quotes', RecordID: '751364000038706221', fields: 'Segment_wyceny,W_pakiecie' });

    Not applicable – these are line-item fields, not on the main record.

  4. getRelatedRecords for Product_Details

    ZOHO.CRM.API.getRelatedRecords({ Entity: 'Quotes', RecordID: '751364000038706221', RelatedList: 'Product_Details' });

    Fails with “relation name invalid” (Product_Details is a subform/line items, not a related list).


Notes

  • Confirmed: ZOHO.CRM.WIZARD.Post is not an SDK method

  • The full calculation snapshot is also stored in a JSON field on the Quote, but we do not want to use that as the data source


Expected vs Actual

  • Expected: getRecord should include line_item_custom_fields for each Product_Details row, or at least return Segment_wyceny / W_pakiecie when requested via fields

  • Actual: Product_Details are returned without custom line-item fields; line_item_custom_fields is undefined/missing


Question to the community
How to correctly retrieve custom line-item fields (Segment_wyceny, W_pakiecie) from Quotes → Product_Details using Zoho Embedded App SDK v1.2?

Is there a documented way to make getRecord return line_item_custom_fields for Quotes line items, or an alternative endpoint/parameter that should be used within widgets?

    • Sticky Posts

    • Kaizen #217 - Actions APIs : Tasks

      Welcome to another week of Kaizen! In last week's post we discussed Email Notifications APIs which act as the link between your Workflow automations and you. We have discussed how Zylker Cloud Services uses Email Notifications API in their custom dashboard.
    • Kaizen #216 - Actions APIs : Email Notifications

      Welcome to another week of Kaizen! For the last three weeks, we have been discussing Zylker's workflows. We successfully updated a dormant workflow, built a new one from the ground up and more. But our work is not finished—these automated processes are
    • Kaizen #152 - Client Script Support for the new Canvas Record Forms

      Hello everyone! Have you ever wanted to trigger actions on click of a canvas button, icon, or text mandatory forms in Create/Edit and Clone Pages? Have you ever wanted to control how elements behave on the new Canvas Record Forms? This can be achieved
    • Kaizen #142: How to Navigate to Another Page in Zoho CRM using Client Script

      Hello everyone! Welcome back to another exciting Kaizen post. In this post, let us see how you can you navigate to different Pages using Client Script. In this Kaizen post, Need to Navigate to different Pages Client Script ZDKs related to navigation A.
    • Kaizen #210 - Answering your Questions | Event Management System using ZDK CLI

      Hello Everyone, Welcome back to yet another post in the Kaizen Series! As you already may know, for the Kaizen #200 milestone, we asked for your feedback and many of you suggested topics for us to discuss. We have been writing on these topics over the