Add a prefix to an Account name during creation if the Account has a specific Record Type, Ensuring consistent naming for easy identification.
Leverage a Record -Triggered Flow to run on Account creation and update the Account name if its RecordType meets specific criteria
Context: We have previously defined a RecordType Vendor for the Account object. It is the record type that will be used for this article
Step 1: Create a Record -Triggered Flow
In the first step, we will create a Flow
Step 2: Configure the Start Element
Step 3: Create the variable to store the RecordType Name that will be concerned by the automatism
Step 4: Choose Resource Type as Constant, Data Type as Text and Value as Vendor. Click Done
Note: When typing the Constant value, you are proposed to select a predefined Constant value. But here we will just type the text value as a free text
Step 5: Create the second Constant resource now to store the prefix used in the Flow. This prefix could also be managed outside of the Flow using a Custom Metadata Type
Step 6: Add a GetRecords element to retrieve the RecordType Id from its name
Step 7: Create an Update Records element
Step 8: Set the Field value for Name
Step 9: Click Check Syntax, and click Done
Step 10: Save the Flow & Activate it!
___________________________________________________
Written by: Eric BURTÉ | Forum Ambassador
Based in France, Eric Burté is Head of Salesforce and AI, within DEVOTEAM Group.
As a Salesforce Expert Director, Eric works with project teams, to support them on the design, build and delivery of their Salesforce projects, and works with his clients in assessment project context, Salesforce ‘Center of Excellence’ teams management, or Design Authority approach implementation.
Submissions reflect only the opinions of the user who made available the Submission and not the opinions of Salesforce, regardless of whether the user is affiliated with Salesforce, and may contain or constitute products, services, information, data, content and other materials made available by or on behalf of third parties ("Third Party Materials). Salesforce neither controls nor endorses, nor is Salesforce responsible for, any Third Party Materials, including their accuracy, validity, timeliness, completeness, reliability, integrity, quality, legality, usefulness or safety, or any applicable intellectual property rights. Any Submissions made available through any message board or forum in response to posted questions, or that otherwise purports to answer any questions, including any questions about Salesforce or Programs, are made available for your general knowledge only and should never be relied upon as answers to your specific questions (even if an answer is marked as a “best” answer or with any similar qualifications). You should always contact Salesforce support for answers to your specific questions. Salesforce has no control over Submissions, and is not responsible for any use or misuse (including any distribution) by any third party of Submissions.
If you have questions, tap into the wisdom of our entire Trailblazer Community here: https://trailhead.salesforce.com/trailblazer-community/feed
004633778

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.