Hands on 4 - understanding Subflow and the Wait element
Subflow allows us to embed an existing Flow into another Flow. You can use Subflow input and output assignments to transfer data between the master Flow and the referenced Flow, whereas the Wait
element can only be used in an auto-launched Flow to create a time-dependent action, for example, to send an e-mail to the Opportunity owner 10 days after the Opportunity close date. To understand Subflow, we have to create a master Flow first.
Creating a master Flow
Let's look at a business scenario. Sara Bareilles is working as a system administrator at Universal Containers. She wants to use Flow to create an Opportunity and set the Opportunity fields according to the following requirements:
Close Date
: Today plus 120 daysOpportunity Name
: The same as the account nameAccount
: Map with the account record that started this FlowStage
: Prospecting
She wants to launch the Flow using Process Builder whenever an account gets created. Perform the following...