In our previous article, NSC | Custom Form - Remove Email action, we learned how to hide the Email action using a Custom Form.
However, some companies may prefer to use a single Custom Form instead of maintaining multiple forms per role. This article will guide you through the process of accomplishing this using a Workflow.
Create the Workflow:
Navigate to Customization > Workflows > Workflows > New
On the Workflow setup page, set the following fields below:
- Name: <Set the name of your Workflow here>
- Record Type: Transaction
- Sub Types: Invoice
- Execute as Admin: Checked
- Release Status: Released
- Keep Instance and History: Always
- Enable Logging: Checked
- On Create: Checked
- On View or Update: Checked
Create the Remove Button action:
On State 1, navigate to New Action > Remove Button
On the Workflow Action page, set the fields below:
- Trigger On: Before Record Load
- Button ID: Email
Condition builder:
- Field: User Role
- Compare Type: any of
- Selection: CEO
Note: Feel free to add the User Role you wanted to be included here
Results:
When using the Administator role, the Email action can be seen:
When using the CEO role, the Email action is now hidden:
Now you know how to achieve this using a Workflow.
I hope this helps! 😁
__
Want to learn more about Customization? Visit New to NetSuite: SuiteBuilder & SuiteBundler