... extract user ID
v_UserID = m_Webhook.get("user_info").get("id").toLong();
}
//
// if user ID was extracted sucessfully
if(v_UserID != 0)
{
//
// get user details (we need the profile)
r_UserDetails ...
... Map users/owners division to this deal
if(!isnull(r_DealDetails.get("Owner")))
{
l_Users = zoho.crm.getRecordById("users",r_DealDetails.get("Owner").get("id"));
for each r_UserDetails in l_Users
{
m_UserDetails ...
... 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.