Skip to main content

I have the following requirements to create a flow:

1) Take Information from the User. 2) Check if there is an Account with the same name. 3) If yes then Update the Account and If not Create the Account.

 

On debugging the flow and not populating the recordId field I am able to create a new account record but when I populate the recordId, the flow is not showing the record details and when I populate the fields on the debug screen it is creating a new record instead of updating it. Please advise where I am going wrong

 

Below is my flow:

 

Update/Create Record Flow

The Screenshot of each flow component:

 

SS2.PNG

 

SS3.PNG

 

SS4.PNG

 

SS5.PNG

 

SS10.PNG

 

SS8.PNG

 

SS9.PNG

 

#flow
4 respuestas
  1. 13 jun 2022, 03:49
    1. First of all, move the Get Record element after the Screen element. 
    2. You don't need recorId
    3. Then in the Get Record element use the right query like Name = user entered name (in screen element) 
    4. Update the decision element to reference get element like 
      1. {!Get_Account} Is null false mean record exists
        1. Add Update logic
      2. {!Get_Account} Is null true mean record don't exist
        1. Add create logic
0/9000