Is it possible to get a client script to ignore role permissions? I currently have a User Event script create a button that calls a Client Script when pressed. The client script then roles through the sales team on a record, looks for a specific role and loads the employee record of that employee to pull the email address for that employee. When I execute the script as Admin it works perfectly. When a role with restrictions attempts to run the script an nlObjError is thrown. I've traced the error back to those roles not being able to view employee records. So back to my original question, is there a way to get a client script to ignore role permissions while executing? I have the UE script set to Execute as Administrator however that does not follow through to the client script execution.
... else if (z == 5){ var employee_name = nlapiGetLineItemValue('salesteam', 'employee', y); console.log(employee_name); var engrecord = nlapiLoadRecord('employee', employee_name); console.log(engrecord); var engemail = engrecord.getFieldValue('email'); console.log(engemail);