Flow Naming Conventions Suggestions & Best Practices

Learning Salesforce Flows – Part 2 – Flow Naming Conventions Suggestions & Best Practices

Introduction:

Welcome to the second blog post of the “Learning Salesforce Flows” series. In this post, we will focus on the best practices of Salesforce Flow Naming Conventions. We will also learn how to create effective descriptions for them. Salesforce flows help automate various business processes, and it’s essential to follow the right conventions to keep them organized.

flow-feature
Creating Effective Flow Descriptions: Outlining Your Flow’s Purpose

Create a flow in Salesforce with a clear and concise naming convention, and provide a description of its purpose. This, in turn, will enable other team members to quickly understand the flow and its purpose.

In order to effectively outline the purpose of your flow, it is recommended to include the following information in your flow naming conventions and description:

1. Identifying the Problem Your Flow Solves:

Start by including a clear statement of the problem your flow is solving. This should include details on the specific pain points your flow addresses. You should also mention any objectives or goals it aims to achieve.

2. Describing the Flow’s Functionality:

After outlining the problem your flow solves, the next step is to describe how your flow functions. This involves describing the objects your flow interacts with and specifying where and how you invoke it. For example, if you’re designing a screen flow, you could choose a page layout. Alternatively, if you want to create an auto-launched flow, you could opt for a Process Builder process instead.

3. Hooking Into the Business Process and Impact on Groups:

Explain where your flow hooks into the broader business process and which groups it impacts. This provides context for other team members who may need to work with or modify the flow in the future.

4. Linking to JIRA or Story IDs:

Link your flow to a specific JIRA or Story ID. Make sure to include this information in the flow description. This will help ensure that you can track and manage your flow properly. It will also help other team members easily locate the relevant information they need about the flow.

Flow Naming Convention Suggestions

It’s essential to follow the right naming convention to keep your Salesforce flows organized. Here are some suggested naming conventions for the Flow Naming Conventions suggestions to follow for various types of flows in Salesforce, including Flow Name, Flow API Name, and Descriptions :

Flow Type Naming ConventionExampleAPI Name ConventionExampleSample Description
Screen FlowScreen Flow: <Object Name> <Short Yet Meaningful Description>Screen Flow: Contact Creation
From Account
<Object Name>
_SCR_
<Function of Flow>
Contact_SCR_CreateContactA Screen flow that is used to create a new contact, that will be called from Account Page using a Quick Action button.
Record-Triggered Flow
Before Save
(A record is created)
Record-Trigger: <Object Name> Before SaveRecord-Trigger: Account
Before Save
<Object Name>
_TRG_
<Function of Flow>
Account_TRG_BeforeInsertThis flow Triggers Before-Save automation when a new account record is inserted. See below details for list of functions.
1. This will update rating to cold, when a new account is inserted.
2. etc…..
Record-Triggered Flow
Before Save
(A record is updated)
Record-Trigger: <Object Name> Before SaveRecord-Trigger: Account
Before Save
<Object Name>
_TRG_
<Function of Flow>
Account_TRG_BeforeUpdateThis flow Triggers Before-Save automation when a account record is updated. See below details for list of functions.
1. This will update account rating to hot when annual revenue is greater than 3500000.
2. etc…..
Record-Triggered Flow
Before Save
(A record is inserted or updated)
Record-Trigger: <Object Name> Before SaveRecord-Trigger: Account
Before Save
<Object Name>
_TRG_
<Function of Flow>
Account_TRG_Before_Insert_UpdateThis flow Triggers Before-Save automation when a new account record is inserted or existing account record is updated. See below details for list of functions.
1. This will update rating to cold, when a new account is inserted.
2. This will update account rating to hot when annual revenue is greater than 3500000.
Record-Triggered Flow
After Save
(A record is created)
Record-Trigger: <Object Name> After SaveRecord-Trigger: Account
After Save
<Object Name>
_TRG_
<Function of Flow>
Account_TRG_AfterInsertThis flow Triggers After-Save automation when a account record is inserted. See below details for list of functions.
1. This will update all the contacts last name, when account name is changed.
2. etc…..
Record-Triggered Flow
After Save
(A record is updated)
Record-Trigger: <Object Name> After SaveRecord-Trigger: Account
After Save
<Object Name>
_TRG_
<Function of Flow>
Account_TRG_AfterUpdateThis flow Triggers After-Save automation when a account record is updated. See below details for list of functions.
1. This will update all the contacts last name, when account name is changed.
2. etc…..
Record-Triggered Flow
After Save
(A record is inserted or updated)
Record-Trigger: <Object Name> After SaveRecord-Trigger: Account
After Save
<Object Name>
_TRG_
<Function of Flow>
Account_TRG_After_Insert_UpdateThis flow Triggers After-Save automation when a new account record is inserted or existing account record is updated. See below details for list of functions.
1. This will update rating to cold, when a new account is inserted.
2. This will update account rating to hot when annual revenue is greater than 3500000.
Record-Triggered Flow
Before Delete
Record-Trigger: <Object Name> Before DeleteRecord-Trigger: Contact
Before Delete
<Object Name>
_TRG_
<Function of Flow>
Contact_TRG_BeforeDeleteThis flow Triggers Before-Delete automation when a account record is deleted. See below details for list of functions.
1. This will update total contact count on account, when a contact is deleted.
2. etc…..
Schedule-Triggered Flow<Object Name> Schedule: <Short Description>Contact Schedule: Send Birthday Emails<Object Name>
_TRG_
<Function of Flow>
Contact_BAT_SendBirthdayEmailsThis flow is a scheduled flow, which used to send birtday gretting mails to contacts, whose birthday is today.
Autolaunched FlowSubflow: <Short Description>
Subflow: <Object Name> Handler 
Subflow: Add Timesheet Entry
Subflow: Lead Handler
SUB_<Function of Flow>SUB_CommonLogicForCaseInsertThis flow is a sub flow, which contains common lgoic for case creation.
Field Service Mobile FlowField Service:<Short Description>Field Service: Create Service AppointmentFSL_<Object Name>_
<Function of Flow>
FSL_ServiceAppointment_CreationThis flow is used in FSL to create service appointments.
Platform Event-Triggered FlowPlatform Event-Trigger: <Short Description>Platform Event-Trigger: Update PO on QuoteEVT_<Function of Flow>EVT_UpdatePOOnQuoteThis flow is used for processing an event to update po on quote record.
Resources Naming Suggestions

In Salesforce, Flow Naming Conventions play an important role in keeping your flows organized and easy to understand. It’s a good practice to name your variables, data elements, logic’s, and screen elements in a way that describes their intended purpose.

1. Variables

Consider the following useful naming convention suggestions to follow when naming your Salesforce Flow variables:

Type Data TypeApi Naming ConventionExampleSample Description
VariableTextvarT_<Short Description>varT_FirstNameThis variable is used to store contact first name.
NumbervarN_<Short Description>varN_TotalContactsThis variable is used to store total contacts count of an account.
CurrencyvarC_<Short Description>varC_TotalOppAmountThis variable is used to store total opportunity amount against an account.
BooleanvarB_<Short Description>varB_IsActiveThis variable is used to store boolean value of whether the account is active or not.
DatevarD_<Short Description>varD_OppClosedDateThis variable is used to store opportunity closed date.
Date/TimevarDT_<Short Description>varDT_CurrentDateTimeThis variable is used to store current date time, when the flow is running.
PicklistvarP_<Short Description>varP_AccountTypeThis variable is used to store type of account.
Multi-Select PicklistvarMSP_<Short Description>varMSP_MarketingChannelsThis variable is used to store type of marketing channels on campaign.
Record VariablevarR_<Object Name>varR_AccountThis variable is used to store single account record data.
Record Collection VariablevarR_<Object Plural Label>varR_AccountsThis variable is used to store multiple account records data.
ConstantConstantcon_<Short Description>con_DefaultRatingThis variable is used to store default rating value for an account.
FormulaTextforT_<Short Description>forT_ContactNameThis variable is used to store calculated contact name.
FormulaNumber
etc. same as variables
but adding for and then
Variable Type
forN <Short Description>for_OpportunityAmountThis variable is used to store calculated opportunity amount.
Text TemplateText TemplatetextT_<Short Description>textT_EmailBodyThis variable is used to store email body.
ChoiceChoicechoice_<Short Description>choice_StatusThis variable is used to store account status choices.
Record Choice SetRecord Choice SetrecChoice_<Short Description>recChoice_LeadStatusThis variable is used to store lead status choices.
Picklist Choice SetPicklist Choice SetpicChoice_<Short Description>picChoice_StageThis variable is used to store opportunity stage choices.
Collection Choice SetCollection Choice SetcolChoice_<Object Plural Label>colChoice_OpenLeadsThis variable is used to open lead choices.
StageStagestage_<Short Description>stage_CustomStageThis variable is used to store stage.

Reference Links –

wiki.sfxd.org

For more helpful articles please visit – https://thesalesforcedev.in

One response to “Learning Salesforce Flows – Part 2 – Flow Naming Conventions Suggestions & Best Practices”

  1. […] Then, click on save to save the flow. For flow naming conventions best practices, please see our previous post – Learning Salesforce Flows – Part 2 – Flow Naming Conventions Suggestions & Best Practices […]

    Like

Leave a reply to A Beginner's Guide to Salesforce Screen Flows Cancel reply