So I need to assign an inside sales owner to an account based on the territory so this is what I have:
account = zoho.crm.getRecordById("Accounts",account_ID);
accountTerritory = ifnull(account.get("territory"),"");
if(accountTerritory != "")
{
if(accountTerritory == "Benelux")
{
info zoho.crm.updateRecord("Accounts",account_ID,{"Inside_Sales_Owner":"USERINFORMATION"});
}
else if(accountTerritory == "Europe")
{
info zoho.crm.updateRecord("Accounts",account_ID,{"Inside_Sales_Owner":"USERINFORMATION"});
}
}
The thing is, how do I get the ID of the users? because this field " Inside Sales Owner" is a lookup from the user,
can "==" be used to compare Strings in Deluge? I am kind of new here.