Wednesday, June 14, 2017

Process Automation - SalesForce Workflow Rule

  • Use Process Builder rather than Workflow, if possible.
  • A workflow rule is the main container for a set of workflow instructions. These instructions can always be summed up in an if/then statement.
  • Workflow rule example: If an account is created or updated and it’s located in Texas, you want Salesforce to automatically perform certain actions. Here’s how that if-statement breaks down into workflow rule criteria.
    • An account (object)
    • is created or updated (evaluation criteria) and
    • is located in Texas (rule criteria)
  • Every workflow rule is directly associated with one and only one object.

  • Action:
    • Immediate actions
    • Time-dependent actions (before or after)
  • If you selected “created or edited” for your evaluation criteria, you can’t add time-dependent actions. You can monitor and cancel pending time-dependent actions from Time-Based Workflow in Setup.
  • Time trigger:
    • trigger action before or after
    • Now = Rule Trigger Date (e.g. 7 days from now = 7 days after rule trigger date.
  • Workflow Action can be saved & reused:
    • Click Add Workflow Action | Select Existing Action.

What is Workflow?
Workflow automates the following types of actions based on your organization's processes:

  • bulletTasks—Assign a new task to a user, role, or record owner.
  • bulletEmail Alerts—Send an email to one or more recipients you specify.
  • bulletField Updates—Update the value of a field on a record.
  • bulletOutbound Messages—Send a secure, configurable API message (in XML format) to a designated listener.
For example, workflow can:
  • bulletAssign follow-up tasks to a support rep one week after a case is updated.
  • bulletSend sales management an email alert when a sales rep qualifies a large deal.
  • bulletChange the Owner field on a contract three days before it expires.
  • bulletTrigger an outbound API message to an external HR system to initiate the reimbursement process for an approved expense report.
Each workflow rule consists of:
  • bulletCriteria that cause the workflow rule to run.
  • bulletImmediate actions that execute when a record matches the criteria. For example, Salesforce can automatically send an email that notifies the account team when a new high-value opportunity is created.
  • bulletTime-dependent actions that queue when a record matches the criteria, and execute according to time triggers. For example, Salesforce can automatically send an email reminder to the account team if a high-value opportunity is still open ten days before the close date.

No comments:

Post a Comment