如何将使用 deluge 从 JSON 获取的变量值更新到 zoho crm 中的字段?

问题描述 投票:0回答:1

这是我为获得所需输出而编写的代码。

record = zoho.crm.getRecordById("quotes",683769000000338181);
info record;
Exproprice = record.get("Exproprice");
info Exproprice;
Total_Deduction_Item_freebies_Free_copy =  record.get("Total_Deduction_Item_freebies_Free_copy");
info Total_Deduction_Item_freebies_Free_copy;
Total_interest_Amount = record.get("Total_interest_Amount");
info Total_interest_Amount;
Principal_Net_sales = Exproprice - Total_Deduction_Item_freebies_Free_copy -Total_interest_Amount;
info Principal_Net_sales;
//record.put("Principal (Net sales)", "Principal_Net_sales");
//updateResponse = zoho.crm.updateRecord("Quotes", record);
 response = zoho.crm.updateRecord("Quotes",683769000000338181,Principal_Net_sales);
zoho zoho-deluge deluge
1个回答
0
投票

使用此代码:

record = zoho.crm.getRecordById("quotes",683769000000338181);
info record;
Exproprice = record.get("Exproprice");
info Exproprice;
Total_Deduction_Item_freebies_Free_copy =  record.get("Total_Deduction_Item_freebies_Free_copy");
info Total_Deduction_Item_freebies_Free_copy;
Total_interest_Amount = record.get("Total_interest_Amount");
info Total_interest_Amount;
Principal_Net_sales = Exproprice - Total_Deduction_Item_freebies_Free_copy -Total_interest_Amount;
info Principal_Net_sales;
mp = Map();
mp.put("Principal_Net_sales", Principal_Net_sales); // Replace Principal_Net_sales with the API name of this field in Quotes module which you can find in Settings > Developer Hub > APIs and SDKs > API Names
resp = zoho.crm.updateRecord("Quotes", 683769000000338181, mp);
info resp ; 
© www.soinside.com 2019 - 2024. All rights reserved.