How to create workflow automation on Salesforce

intermediate 8 min read Updated 2026-03-18
Quick Answer

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

1

Access Workflow Rules Setup

Log into Salesforce and click the Setup gear icon in the top right corner. In the Setup menu, navigate to Process Automation and select Workflow Rules. Click New Rule to begin creating your automation.
For newer automations, consider using Flow Builder instead of Workflow Rules as it offers more flexibility and is Salesforce's recommended approach.
2

Select Object and Configure Basic Settings

Choose the Object you want to automate from the dropdown (e.g., Account, Contact, Opportunity). Enter a descriptive Rule Name and optionally add a Description explaining the workflow's purpose. Set the Active checkbox if you want the rule to run immediately after creation.
Use clear naming conventions like 'Account_UpdateOwner_OnStatusChange' to make workflows easy to identify later.
3

Define Evaluation Criteria

Select when the rule should be evaluated:
  • 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
This determines when your workflow triggers will execute.
The third option prevents unnecessary re-triggering when records already meet criteria, improving performance.
4

Set Rule Criteria

Define the conditions that must be met to trigger the workflow. Choose between:
  • 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 multiple criteria using AND or OR logic as needed.
Test your criteria with sample records before activating to ensure it captures the right scenarios.
5

Add Workflow Actions

Click Add Workflow Action and select from available options:
  • 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 each action with specific details like field values, email templates, or task assignments.
Field updates happen instantly, while email alerts may have slight delays depending on system load.
6

Configure Field Updates (if selected)

For field update actions, specify the Field to Update and set the New Field Value. Options include:
  • Use a formula to set new value
  • Use a specific value
  • Null out the field
  • Use another field's value
Test the formula syntax using the Check Syntax button before saving.
7

Test and Activate the Workflow

Save your workflow rule and test it in a sandbox or with test records first. Create or modify records that should meet your criteria and verify the actions execute correctly. Once confirmed, check the Active checkbox and click Save to enable the workflow in production.
Always test workflows thoroughly before activating, as they can impact data integrity and user notifications across your organization.

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.

Prices mentioned in this guide are pulled from current plan data and may change. Always verify on the official Salesforce website before purchasing.