Book Image

Learning Salesforce Visual Workflow and Process Builder - Second Edition

By : Rakesh Gupta
Book Image

Learning Salesforce Visual Workflow and Process Builder - Second Edition

By: Rakesh Gupta

Overview of this book

Salesforce Management System is an information system used in CRM to automate the business processes like sales and marketing. To implement this, Force.com developed a powerful tool called Visual Workflow to automate business processes by creating applications also called Flows. Learning Salesforce Visual Workflow, Second Edition is a practical guide on Flows that will enable you to develop custom applications in Salesforce with minimized code usage. The book starts with an introduction to Visual Workflows that teaches all the building blocks of creating Flows and use it efficiently. You will learn how to easily automate business processes and tackle complex business scenarios using Flows. The book explains the working of the Process Builder so you can create reusable processes. The book also covers how you can integrate existing or newly created Flows with the Salesforce Lightening Experience. By the end of the book, you will get a clear understanding on how to use Flows and Process Builder in your organization to optimize code usage.
Table of Contents (9 chapters)

A few points to remember

The following are some noteworthy points to remember:

  • Don't perform the DML operation inside the Loop element. It will easily hit the governor limit, that is, System.LimitException: Too many SOQL queries: 101.
  • You can't refer to a Flow as Subflow if both types are not the same, refer to it as either Flow or Aautolaunched.
  • You can only use the Wait element in Autolaunched Flow.
  • You can only launch Autolaunched Flow from the Process Builder.
  • A Flow runs in user mode and Process Builder runs in the system mode. Let's take an example if you are trying to update Opportunity the next step field:
    • If you use Process Builder: If the running user doesn't have access to the next step field, Process Builder will be able to update it.
    • If you use Flow: If the running user doesn't have access to the next step field, they will get an error.
  • If the Flow doesn't have a...