Scenario
The Invoice button must be hidden in Estimate transactions to restrict a specific role such as Sales Reps from creating Invoices
Solution
- Navigate to Customization > Workflow > Workflows > New
- Basic Information:
- Name: Enter Hide Invoice Button for Estimate
- Record Type: Select Transaction
- Subtype: Select Estimate
- Released Status: Select Released
- Keep Instance and History: Select Always
- Enable Logging: Enter Checkmark
- Event Definition:
- On Create: Enter Checkmark
- On View or Update: Enter Checkmark
- Click Save
- Click State 1
- Bottom right corner: Click New Action
- Click Remove Button
- Basic Information:
- Trigger On: Select Before Record Load
- Condition:
- Field: Select User Role
- Compare Type: Select any of
- Selection: Select Sales Manager, Sales Person
- Parameters:
- Button ID: Select Invoice
- Click Save
Note: For the condition initially set on the sample workflow, the user must specify all the roles that should not be allowed to create invoices from estimates. This would be the case if sales rep can be identified per user role. If the sales rep is not identifiable per user role, this condition can be set: User : Is Sales Rep = T. This condition would check the current user accessing the estimate record if the sales rep flag is checked. If it is checked, then the Workflow would remove the invoice button.