Hi Team - I have this custom function that pulls information from our Bills custom module.
rec_bill = zoho.crm.getRecordById("Bills",billid);
bill_prod = rec_bill.get("Product_Name");
bill_prod_id = bill_prod.get("id");
bill_vendor = rec_bill.get("Vendor_Name");
bill_vendor_id = bill_vendor.get("id");
mp = Map();
mp.put("Products",bill_prod_id);
update = zoho.crm.updateRelatedRecord("Products",bill_prod_id,"Vendors",bill_vendor_id,mp);
info billid;
info update;
What I need to accomplish is to put products in the Products related list under the Vendors module. When I execute the function, I get this error
{"code":"INVALID_DATA","details":{},"message":"the related module name given seems to be invalid","status":"error"}
I am pretty sure of the API name of the related list since I have the same custom function for mapping Products to Accounts, Contacts and Deals. I just can't have this custom function to work for the Vendors module. Any help would be greatly appreciated. Thanks in advance