Slaesforce FAQ

how to use decision in flow salesforce

by Logan Larson Published 2 years ago Updated 1 year ago
image

To add or configure a Decision element: From Setup, click Create| Workflow & Approvals| Flowsand open a new or existing flow. From the Palette, drag the Decision element onto the canvas.

Full Answer

How do I add a decision element to a workflow?

To add or configure a Decision element: From Setup, click Create | Workflow & Approvals | Flows and open a new or existing flow. From the Palette, drag the Decision element onto the canvas. Enter a Name and Unique Name for the Decision.

What are decision elements in a flow?

This means that when the Outcome is “Yes”, the ‘record’ will exit the Flow. RECAP: Decision elements are your IF statements in a Flow. IF you can think it – you can do it!

What are data elements in Salesforce flow?

Data elements include Create, Update, Get, or Delete records. Essentially, any time you want to edit a record in the Salesforce database, you’ll need to use one of these Data elements. These will also dynamically display depending on the type of Flow you’re running.

Can I use advanced logic in a decision in Salesforce?

And for most elements, like a Fast Lookup or Loop, you can use wether the element was visited or not. Salesforce finally added the ability to use Advanced logic in a Decision and hopefully you will find it useful. If you have ever built a report or put a filter on a workflow, then you should feel right at home here. The Default Outcome.

image

Why use flow in Salesforce?

Flows allow you to build complex business automation using clicks instead of code. As an admin, Flows are going to be your best friend because you will be able to handle the majority of complex business requirements without the help of a Salesforce developer! The benefit of Salesforce Flow is that they are easy to maintain because anyone ...

What is loop in Salesforce?

Loops allow you to handle multiple variables at once using collections. Data elements include Create, Update, Get, or Delete records. Essentially, any time you want to edit a record in the Salesforce database, you’ll need to use one of these Data elements.

What does it mean to call a flow?

To ‘call’ a Flow means that something happens in order to kickstart the Flow process. This could be a Salesforce record change, from another process in Apex/Process Builder, or automated on a recurring schedule. When you create a new Flow, you’re prompted to select the type of Flow you wish to create.

What are the building blocks of a flow?

There are 3 main “building blocks” of any Flow: 1. Elements are the individual building blocks of the Flow. These perform logical actions such as assignments, decisions, or loops. There are also data elements that will query the database or commit record changes. 2. Connectors determine which element leads to which.

What is constant in flow?

Constants are values you set once and never change. They are useful when you want to refer to a single value multiple times through your Flow – if you ever need to change that value, you just need to change it once and it is reflected throughout the Flow.

What is a Loop in Salesforce Flow?

A Loop is a Salesforce Flow element that is used to iterate through a number of items in a collection variable.

How to Create and Use a Loop

Let’s use this scenario: An Account has an Active__c Checkbox field, as does the Contact object. Your manager has asked you to create a Flow that marks all child Contact records as Active or Inactive, based on the value of the Account’s field.

Best Practices When Using Loops in Salesforce Flow

While creating the above Flow, we’ve already discussed some best practices that need to be taken into account while using Loops in Salesforce Flows. Let’s reiterate and go into further detail:

Summary and Further Learning

In the above example, you learned how to use Loops in a Flow and also some key best practices to keep in mind, when using Loops. If you’d like to learn more about using Loops and using Flows in general, there’s a few options I’d recommend.

image
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 1 2 3 4 5 6 7 8 9