Why ZOHO Function Can't Read Custom Field API In Quotes Module (Subform)

Why ZOHO Function Can't Read Custom Field API In Quotes Module (Subform)

I’m using a Deluge function to transfer data from a subform in the Quotes module to a subform in the Accounts module. Everything works except for a custom picklist field in Quotes—no matter what I try, the Zoho API can’t read that field ("Status_sb"). Below is my function, which transfers all line items except the “Status” field:

What am i doing wrong?

i checked that the field match in both modules, pick list is the same, i also changed the API name to match, the order of the items is in the same order, no extra spacing anywhere, its the exact same structure, i checked and doble checked a million times :(

FYI - I'm using the native quotes subform, the subform with the products that is already implemented in it i didn't create a new custom subform, i just added the status field (picklist) to the existing subform

thanks everyone

My Code:

string standalone.sync_sow_to_client_subform(string sow_id)

{

    respMap     = zoho.crm.getRecordById("Quotes", sow_id);

    accountId   = respMap.get("Account_Name").get("id");

    mp          = map();

    sub_forms   = list();

    subinfo     = ifnull(respMap.get("Product_Details"), list());

    for each rec in subinfo

    {

        subform     = map();

        prod        = rec.get("product");

        if(prod != null)

        {

            lookupMap = map();

            lookupMap.put("id", prod.get("id"));

            subform.put("Products_Name", lookupMap);

        }

        subform.put("Quantity",    rec.get("quantity"));

        subform.put("List_Price",  rec.get("list_price"));

        subform.put("Description", rec.get("product_description"));

        subform.put("Status_sb",   rec.get("Status_sb"));

        sub_forms.add(subform);

    }

    mp.put("ServicesSubForm", sub_forms);

    updateResp = zoho.crm.updateRecord("Accounts", accountId, mp);

    return updateResp.toString();

}