Hello:
I am trying to copy a value from our Sales Order module to our Deals module. I have been trying to use a function that Zoho Support provided to me for transferring values from our Deals to our Account module but it's not working. When I use this function, it never sees the values in my field and my info error says there is no value. I will put what I am using below and am hoping someone call tell me what I am doing wrong. Thank you!
Arguments:
soid = Sales Order ID
dealid = Deal ID
API Names:
Field in Sales Order Module: PM_Required1
Field in Deal Module: PM_Required
Function:
rec = zoho.crm.getRecordById("Sales Orders",soid);
resp = zoho.crm.getRelatedRecords("Deals","Sales Orders",soid);
pm = rec.get("PM_Required1").toString();
mp = Map();
mp.put("PM_Required",pm);
updateresp = zoho.crm.updateRecord("Deals",dealid,mp);
info mp;
info updateresp;
Thank you!