Hello,
I know this has been asked many times, but I can't seem to figure it out. Trying to copy info between two modules using deluge script. I'm very new to this, so apologies if I am missing something obvious.
I have a "products" module, which I would like to copy a product description ("Description") and unit price ("Unit Price") into a "work" module into the P1desc field (to receive "description" and the P1ppu field (to receive the "Unit Price").
Currently my work module has a lookup field ("Product 1") where a product is selected.
Here is what I have, which is not working.
Arugment mapping:
prodId = Lookup:Product 1 - Product Id
workId = Work - Work Id
Deluge code:
prodRecord = zoho.crm.getRecordById("Products",prodId);
descId = prodRecord.get("Description");
priceId = prodRecord.get("Unit Price");
mp = Map();
mp.put("P1desc",descId);
mp.put("P1ppu",priceId);
update = zoho.crm.updateRecord("Work",workId,mp);
Thanks,
Alex