Shaping a flow
With great power comes great responsibilities! We are not superheroes (even if we can be trailblazers), but powerful point and click tools such as Lightning Flow can lead you to madness if you don't take your time to design them properly.
The following diagram shows an example flow that we are going to build:
What is the use case covered in this complex flow definition?
This flow is used to cover some basic customer service management by performing the following actions, which gives an overall idea of the diagram:
Search for a customer's account.
Check whether it has related advertisement records.
Calculate the customer's Service Level Agreement (SLA) depending on all advertisement SLA definitions (a new custom field added to the Advertisement object used to state the SLA for the specific advertisement installment).
If the customer doesn't have active...