... let v_DealID = r_DealLookup.id;
let r_DealDetails = ZDK.Apps.CRM.Deals.fetchById(v_DealID);
// get Deal/Opportunity fields we need to refer to
var v_OppType = r_DealDetails.Type_of_Opportunity;
...
... if Deal ID is not zero, then it was found!
if(v_DealID != 0)
{
r_DealDetails = zoho.crm.getRecordById("Deals",v_DealID,);
//
// do stuff here such as updating the deal if required
m_UpdateDeal ...
... and updates the Opportunity/Deal/Potential record. In this example, the custom field is called "Division":
//
// init
v_DealID = ifnull(p_DealID,0);
r_DealDetails = zoho.crm.getRecordById("Deals",v_DealID);
//
// ...
... a specific user:
r_ZohoResponse = zoho.crm.getRecordById("users",r_DealDetails.get("Owner").get("id"));
l_MatchingUsers = ifnull(r_ZohoResponse.get("users"),{});
for each r_UserDetails in l_MatchingUser ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.