The Decision - Flow or Code
Years ago, I spoke with a co-worker at Dreamforce. Our topic was popular – Clicks or Code – when to do something through Salesforce configuration
Don’t get me wrong, Flows meet the needs of many requirements. You can open Flow Builder
Record triggered Flows are probably the trickiest type of Flows. Recently I had to make the decision to use a Flow or write an APEX trigger. The requirement was to update a record, but I had to pull information from related objects – calculate a balance and concatenate codes. Also keep in mind the entry criteria were important.
Recommended by LinkedIn
I started to go down the Flow path. As part of a delivery team
Flows will always be the first line of defense. Screen Flows has eliminated hours of frustration of styling a modal in a lightning component. But there are times were we still need the APEX code. Having the skill to know when to make the right decision of Code vs Flow has made me aware of my strengths. Requirements can take many paths, but making the right decision based on key clues on deciding between using a flow or APEX code makes for a better solution and a happy client.