Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Is there a way to check specific permissions for script execution?
Hi There
I have a map reduce script that is triggered from a task.submit on a workflow action script.
The execution of the scripts works as follows:
1 A 'create invoice' button is added to a sales order record with a workflow action
2 once the button is pressed, the workflow moves to a state where a workflow action script is triggered
3 The workflow action script uses the N/task module to trigger a map reduce script
The map reduce script can only be executed as an administrator
The issue with this is that, roles which do not have permissions to create invoices (which is what the map reduce script does), can do so because of the set up of the workflow and the scripts.