Skip to main content
Pranay yerragunta (na) 님이 #Flows에 질문했습니다

#Trailhead #Salesforce Admin #Flows

 

Suppose a business requires the Account's Customer Status to update automatically whenever a related Opportunity is marked as Closed Won. How would you implement this requirement using Salesforce Flow? Which Flow type would you choose, and why?

답변 2개
  1. 10월 13일 오전 8:55

    Hi @Pranay yerragunta I would recommend using an After-Save Record-Triggered Flow because we need to update a related Account record.

    Implementation Steps:

    1. Go to Setup → Flows → New Flow → Record-Triggered Flow.
    2. Select Opportunity as the object.
    3. Set the condition: Stage = Closed Won.
    4. Choose Only when a record is updated to meet the condition requirements.
    5. Select After Save (Actions and Related Records).
    6. Add an Update Records element to update the related Account using $Record.AccountId.
    7. Set Customer Status = Active Customer (or the required business value).
    8. Save, Activate, and Test the Flow.

    Why After-Save Flow?

    • Before-Save Flow is mainly used to update fields on the triggering record.
    • After-Save Flow supports updating related records.
    • No Apex code is required for this straightforward requirement.

    Best Practice: Test with multiple Opportunities and confirm the Account status updates correctly when an Opportunity changes to Closed Won.

0/9000