My only Custom Module is "ProductLineItem" with
Here are my arguments:
Sumup field is LineItemTotals
potentialid is Potential ID
Here is my script:
potentialid1=input.potentialid.toString();
resp = zoho.crm.searchrecordsbypdc("custommodule1","Opportunity",potentialid1);
info resp;
total=0.0;
for each rec in resp
{
total=(total + (rec.get("Amount")).toDecimal());
}
updateResp = zoho.crm.updateRecord("Potentials",potentialid1,{ input.sumupfield : total });