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:
The Screenshot of each flow component:
#flow
4 respuestas
- First of all, move the Get Record element after the Screen element.
- You don't need recorId
- Then in the Get Record element use the right query like Name = user entered name (in screen element)
- Update the decision element to reference get element like
- {!Get_Account} Is null false mean record exists
- Add Update logic
- {!Get_Account} Is null true mean record don't exist
- Add create logic
- {!Get_Account} Is null false mean record exists