Opportunity Common Flows
Opportunity: Format Name
Design
As a Salesforce User
I want the Opportunity Name to be automatically formatted
So that the Opportunity Name is consistent and easy to read
Given I am on an Opportunity record page
When I create a new or edit an existing Opportunity
Then the Opportunity Name is automatically formatted
Build
Flow
Flow Label: Opportunity: Format Name
Description: Automatically formats the Opportunity Name using the Account Name, Record Type, and Close Date
Type: Record Triggered Flow
Trigger: A record is created or updated
Object: Opportunity
Conditions: None
Optimize the Flow for: Fast Field Updates
Resource Type: Formula
API Name: Formatted_Opportunity_Name
Description: Formats the Opportunity Name for using the Account Name, Record Type and Close Date, for example: 'Globex Inc | Merchant | 31-5-2024'
** Data Type:** Text
Formula:
{!$Record.Account.Name} & " | " & {!$Record.RecordType.Name} & " | " & TEXT(DAY({!$Record.CloseDate})) & "-" &
TEXT(MONTH({!$Record.CloseDate})) & "-" & TEXT(YEAR({!$Record.CloseDate}))
Element: Update Records
How to Find Records to Update and Set Their Values: Use the opportunity record that triggered the flow
Label: Update Opportunity Name
Set Filter Conditions: None
Field Values:
- Name =
{!Formatted_Opportunity_Name}
Field Updates
- Update the Opportunity Name field help text to 'Automatically formatted when the Opportunity is saved'
Test
Steps
- Create a new Opportunity or edit an existing Opportunity
- Save the Opportunity
- Check the Opportunity Name field
Expected Results
- The Opportunity Name is automatically formatted using the Account Name, Record Type, and Close Date
- The Opportunity Name is consistent and easy to read
- The Opportunity Name is displayed in the format 'Account Name | Record Type | dd/mm/yyyy'