help me create a workflow condition to show not sh...
# ask-stanley-ai
s
help me create a workflow condition to show not show the approve button if user used the accountant role
c
AI generated answer (using internal Slack threads):
To create a workflow condition to not show the approve button if the user used the accountant role, you can follow these steps: 1. Create a custom field called “created by role” and set that field using your workflow with a set field value action (but only on create event). This field can be a workflow field as well if you don’t exit the workflow throughout the process. 2. Set the "created by role" field to User role or current role. This will be stored on the record for use in other conditions/actions. 3. In the action where you add the approve button, add a condition whereby the button is only exposed for the user role required. Use the User Role field as a condition on the action and select the role(s) you want access the button to. 4. Add a condition for the approve button "user role != Accountant" (or the equivalent role you want to restrict). This will ensure that the approve button is not shown if the user role is Accountant. Remember, this is a high-level overview of the process and the exact steps may vary depending on your specific NetSuite setup and workflow configuration. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833170056
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830506802
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828940928
Please provide your feedback on this answer.