This email is more of a question than a comment. So I’m looking forward to your thoughts.
In flows, it’s common to verify whether a record exists before performing an action. For example, let’s say you need to update a contact if it exists, or create it if it doesn’t.
- Step 1 is to perform a Get operation, using whatever search criteria makes sense.
- Step 2 is a decision element called “Is Contact Found?”. One outcome is “Contact Found” and the other is “Default Outcome”.
Notice the decision is phrased as a question, and the outcomes are the answers. Also, answers are never “Yes”, “No”, “True”, or “False”, but are more descriptive.
Here the logic I use: {!Get_Contact.Id} Is Blank False. Thus I’m testing to see whether the Id of Contact is blank.
This works well, but I’m curious to know what logic do you use in the “Contact Found” decision?
The takeaway
In Salesforce, there are many ways to solve problems. I’ve been using a particular approach for a while and would like to verify whether it’s still the “best” approach.