Hi all, I have a work flow where one code block up...
# suitescript
b
Hi all, I have a work flow where one code block updates a custom boolean field in an entity(Vendor). For that reason, current role needs to have
EDIT
permission on
Vendor
record type. I’m trying to move this block out of this flow into a different script and run it as an admin so I can avoid the
EDIT
permission level. Is schedule script the best bet here? Can I achieve this in a restlet somehow? TIA
b
restlets are terrible for permission escalation
they run with the permission of the calling user
if you have an event based workflow, use a user event
if you have a schedule based workflow, use a scheduled script (or map/reduce)
b
Thank you