Loading

Salesforce Platform Flow: Create Child Records on Account via Opportunity Trigger

Date de publication: Sep 22, 2026
Description

Create child records in account. We have a custom object associated to Accounts called "Implementations". And based on a sales opportunity closing, we want new Implementation records to be created and associated to the same account.

Business Use Case

When an Opportunity closes as Won, automatically create Account-related records (e.g., create a Success Plan record on the Account).

Résolution

This article explains how to create a Record-Triggered Flow that automatically creates a related child record (e.g., an Implementation record) on an Account when an Opportunity closes as Won.

Configuration Steps

Step 1: Create a New Flow

To get started, navigate to the top of the page and click on Home. In the Quick Find section, locate and choose Flows. Once you've done that, access the right-hand panel and click on the New Flow button

New Flow screen accessed from the Flows Quick Find panel with the New Flow button highlighted

Step 2: Select Record-Triggered Flow

Select Record-Triggered Flow and click on Create

Record-Triggered Flow type selected with the Create button highlighted

Step 3: Configure the Start Element

  1. Select Object as Opportunity
  2. Configure Trigger: Trigger the Flow When: A record is created or updated
  3. Set Entry Conditions: In Condition Requirements select All Conditions are Meet (AND)
    • Field: StageName
    • Operator: Equals
    • Value: Closed Won
  4. Optimize the Flow for: Actions and Related Records
  5. Click on Done Button

Step 4: Add a Create Records Element

Drag the Create Record element on canvas

  1. Type the Label (Create Implementation records). API Name will be auto generated
  2. Select Object as Implementation
  3. Set Field Values for the Implementations:
    • Field: Account_Name__c
    • Operator: equals
    • Value: {!$Record.AccountId}
  4. Set Field Values for the Implementations:
    • Field: Name
    • Operator: equals
    • Value: Implementation Record for {!$Record.Name}
  5. Click Done

Step 5: Save and Activate the Flow

Save and activate the Flow.

Result: When Opportunity stage is Closed Won, an Implementation record is created related to the account, and the created record displays on the Opportunity record page.

Implementation record created and displayed related to the Account after the Opportunity closed as Closed Won

_____________________________________________

Written By: Divya Chauhan | Salesforce Answers Leader

Divya Chauhan is a Salesforce Architect at Kcloud Technologies. She has 10 years of Salesforce experience and is 25 times Salesforce certified, as well as 7 times Salesforce Architect Certified. She is a Salesforce Community group leader and founder of the NGO DivyaEdu.org, which provides computer literacy programs and free Salesforce training to underprivileged children and women in rural areas.

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

Numéro d’article de la base de connaissances

000396285

 
Chargement
Salesforce Help | Article