When your application is past the level of only registering data, you will quickly find the need for more complex processes. This is where custom flow parts come into play.
How to build a custom Flow part
Just like the Built-in Flow parts, you can use custom Flow parts in Automation flows and User flows. Follow the steps below to create a very simple custom Flow part that sends a notification email to an address you provide it as an Input:
-
Go to Design and then Flow parts:
-
Click the Add button to add a new Flow part:
-
A new, Empty Flow part named New flow part is created and opened. To rename the Flow part, click the Edit icon next to the Flow part name:
-
Name your Flow part Send notification email.
-
Now enter Add mode by clicking the Add button:
-
The Button will turn blue to indicate that Add mode is active.
-
Start by selecting the Starting point which currently says No inputs:
-
You will now see two square Add buttons, one to add an Input and one to add a Step to the flow.
-
Add an Input by clicking the square Add button under the highlighted No inputs text:
-
In the dialog, select Texts and then E-mail address to make the Input an email address.
-
When asked whether it should be a List or a single email, choose One e-mail.
-
Name the Input To address. You have now got a Flow part with a single Input, named To address, of type E-mail address:
-
Now press the Add button at the end of the arrow to add a Step to your Flow part:
-
From the list of actions, choose Send e-mail:
-
In the next Step you can type an email. Let’s keep it simple and type: This is a notification.
-
Choose to use A specific subject.
-
Type in a subject, for example New notification.
-
Choose to send the notfication to A value or list of values from the Flow part.
-
Triggre now shows you a list with all the available values you can use. In this Flow part, only one value is compatible, the To address:
-
Skip the CC or BCC Step.
-
Choose to send the email from A specific address and type your own email address for example.
-
Name the action Send notification.
-
Now click the Add button after your newly created action:
-
Choose the option to End the Flow part after Send notification.
-
Click the main Add button again to exit Add mode:
-
Go back to the list of Flow parts by clicking the Back button:
-
Your Flow part is now ready to be used!
Tip: Always name your Flow part and actions in it after the action performed, e.g. Generate offer document or Calculate shipment costs as this makes it easiest to read your flows.