I have the custom function below, and no matter what the zoho.loginuserid is coming back as mine, not the user that is logged in. For example, I have a user on a mobile device that updates the custom field "Resolution" in the cases module. This function is supposed to append the Resolution to the custom field "History" and then delete the Resolution. Part of the appended string is supposed to be the user that submitted the Resolution. However the function appears to use the administrator's Zoho ID.
timeS = input.time.toString() ;
caseID = input.case.toString() ;
timeString = zoho.currentdate + " " + zoho.currenttime ;
resoNew = input.hist + "\n\n" + timeS + "; User: " + zoho.loginuserid + "; Status is now " + input.stat + "\n" + input.reso ;
crmhistoryUpdate = zoho.crm.updateRecord( "Cases" , caseID , { "History" : resoNew, "Resolution" : "" } ) ;