Update an Account When all related Opportunities are Closed Won using Flow #inSalesforce

Update an Account When all related Opportunities are Closed Won using Flow #inSalesforce


Scenario:

Update Account to Customer when Oppty Closed Won 

but, check if there's another open oppty related to the account, if exists, no action required and if it dont exists, then update Account



Create a record triggered flow


Opportunity object

Update and Create

Stage equals Closed Won



Get:

getAllOpptys

Object: Opportunity

AccountId equals record.AccountId

Isclosed equals False

Only the first record

Choose fields...Id


Decision: found Opptys

Default: No

Yes:getAllOpptys.Id isnull false 


No:

Update:

Account

Id equals record.AccountId


Type: Customer


Save, debug


Activate and Test



Comments

  1. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. Follow Above steps after save and debug "Not Triggered" screen Appear,how to fix this issue

      Delete
    2. If filter criteria don't match, it will say not triggered. Make sure the criteria matches

      Delete

Post a Comment