<@UGRD0ER0Q> Presumably better to create a role wi...
# suitescript
c
@Miriam Armada Presumably better to create a role with only the permissions that the script needs
m
i have a roll for that, but how do i get the script to execute as as that role not as the employee center who has no access to the Project Record
c
message has been deleted
Use the Execute As Role setting
That screenshot is for a suitelet so your screen will look a bit different
m
yup, that setting is not available on the "client" script
message has been deleted
r
Client scripts will always use the Role of the current user. If you need part of the logic to run with admin roles, you will need to put that logic in a Suitelet and call that from your client script.
c
Well that shows how often I use client scripts :)
m
I'll have to try that 🙂