How to create workflow automation on Salesforce
Create workflow automation in Salesforce by navigating to Setup > Process Automation > Workflow Rules, then define triggers, criteria, and actions. Use Flow Builder for more complex automations or stick with classic workflow rules for simple field updates and email alerts.
Prerequisites
- Salesforce admin or developer permissions
- Basic understanding of Salesforce objects and fields
- Knowledge of business process requirements
- Access to Setup menu in Salesforce
Step-by-Step Instructions
Access Workflow Rules Setup
Select Object and Configure Basic Settings
Define Evaluation Criteria
- Created - only when records are created
- Created, and every time it's edited - on creation and all updates
- Created, and any time it's edited to subsequently meet criteria - most common option
Set Rule Criteria
- Criteria are met - specify field conditions using operators like equals, contains, greater than
- Formula evaluates to true - write a custom formula for complex logic
Add Workflow Actions
- New Field Update - automatically change field values
- New Email Alert - send notifications to users or contacts
- New Task - create follow-up activities
- New Outbound Message - send data to external systems
Configure Field Updates (if selected)
- Use a formula to set new value
- Use a specific value
- Null out the field
- Use another field's value
Test and Activate the Workflow
Common Issues & Troubleshooting
Workflow rule not triggering
Verify the rule is Active, check that test records actually meet the defined criteria, and ensure the evaluation criteria setting matches your use case. Review field-level security to confirm the running user has access to all fields in the criteria.
Field update not working
Check that the target field is editable and not protected by validation rules or field-level security. Ensure the workflow user has Modify All Data permission or appropriate field access. Verify formula syntax in calculated field updates.
Email alerts not sending
Confirm email alert recipients have valid email addresses and Email Opt Out is not checked. Check if organization-wide email settings allow automated emails. Verify email deliverability settings in Setup > Email Administration.
Too many workflow executions error
Review workflow logic to prevent infinite loops where field updates trigger the same workflow repeatedly. Add criteria to exclude records that were already processed, or consider using Process Builder or Flow for more complex automation needs.