Businesses take advantage of automated workflows that are made possible by Microsoft Flow. Flow automates workflows between apps and services to get notifications, synchronize files, gather information, and more. Flow also vows to bring sophisticated business solutions when partnered with Power BI and PowerApps.
In this blog, we’ll focus on Flow, which is part of the Office 365 applications. We will share with you how to create an outline, name conventions, and use variables and functions in Flow as well as Flow’s newest feature, which is the copy and paste.
Microsoft PowerApps Champion and MVP Anton Robbins said that outlining is important to executing a successful Flow, because this process provides a framework for your flow and begins the documentation process. Robbins shared this information during the Microsoft Flow online conference held this month.
To those of you who are outlining Flow, make sure to always capture the necessary information like the name of the Flow, purpose, data source or sources, and owners. Remember that it is important to add owners to your Flow because they will take care of the Flow when you are not around.
A basic Flow has one trigger and multiple actions as seen on the photo below. The main idea is that whenever an item is created or modified—which is our trigger—then we have our actions. If the chosen action is no it prompts a certain action. If the chosen condition is yes, the workflow ends.
Other Flows may be complex depending on their purpose. Remember that you can add more conditions and actions to your Flow. Robbins said it is better to use PowerPoint and Word to your outline because everyone has access to these two applications, making it easier for everybody to work on. But if you can use other tools in your outline, he said it’s okay.
Flow provides you with naming conventions that include triggers and actions. It depends on which naming convention suits your needs.
To rename, click on the ellipsis (…) and choose Rename. Rename your trigger or actions. Once you are done with renaming your trigger and action, just hit Enter key on your keyboard or click anywhere in your dashboard to implement the changes. The icons in the Flow will also help you familiarize your Flow.
Here is a tip. Never leave a Flow unattended because the session will end. Unattended means that you are not inside your browser, making any changes.
“When you come back to your Flow, you may get this error message. This thing made me cry. I spent hours working on a Flow, decided to get water, come back and my session ended. Furthermore, it makes all the work that I put in unrecoverable,” he shared during his session.
Make sure you save all your changes if you decide to leave your Flow unattended. Or else, you will have to start from scratch.
Another tip is to test the Flow using Flow Checker to make sure that everything is buttoned up before it is saved.
You also need to be careful in using Test, because once you click Test, everything will go live.
And the last tip is to be careful with working on different versions of actions. For example, there are two actions that are titled similarly but contain different versions in them. This may cause confusion and burden in the process.
“Anything that has version 2 or any version, just be careful to make sure that what the previous version that you may have used and version 2 that has the same thing plus something more. Let’s not name it as version 2. Give it a real name,” Robbins said.
Using Variables and Functions
“Variables and functions go together hand in hand like peanut butter and jelly, like ham and burger, like culet and sugar. You can have one without the other, but it tastes so much better together,” he said.
Variables are just vehicles to move information from point A to point B. You can build a variable once and use it multiple times. In creating a new variable for expressions and functions, you must first initialize the variable to utilize a variable across a Flow.
You can click on the plus (+) sign and click Add an action. In the Search bar, type the word variable or variables. You’ll see multiple variable actions: append to array variable, append to string variable, decrement variable, increment variable, initialize variable, and set variable.
Click on initialize variable option. Start adding a name like EmailValue. Next, in order to use a variable, identify what type of information you want to pass. You can do this by clicking the arrow down option in the Type field. There are different options for you in the Type field, and these are Boolean, integer, float, string, object, and array. In the demo, Robbins used the string type.
For the Value, click the Expression builder that use a functions (fx). Functions are reminiscent of formulas inside of Microsoft Excel. In the Expression builder, fill in the details for the function. If you want to see more functions, click See more in the builder and choose one. While you are typing in the Function field, there is a handy automated help that guides you. Once you are done, click OK. See photo below.
You can preload your variable or reuse the variable by adding an action (click plus sign in dashboard) and clicking Set variable.
Fill in the name and value fields. In the variable name field, you will only see one item, Email/Value. This is because anything else that has been initialized is beneath the previous variable set (initialize variable).
To get more items under the name option, simply drag the set and place it under the Initialize variable Email/Address. Click on the name option, and you will see Email/Address and Email/Value items in the drop-down menu.
It is important to consider location in building a set variable or other actions within Flow. In his demo, the location of the set variable gives the ability to have the initialize variable of email address and email value.
New Flow Feature Copy and Paste
The good thing about Flow’s newest feature, copy and paste, is that it saves you time. To use this feature, simply click on the ellipsis (…) symbol on any trigger or action. Click the ellipsis icon beside the If Demo Status Equal Draft bar. Then click Copy to my clipboard.
Click New Step and select My clipboard option, where you will see the copy of the If Demo Status Equal Draft set in your Flow. Click it.
You will notice that the latest draft indicates that it the second draft, If Demo Status Equal Draft 2, and everything from the first draft made it to the second draft.
The feature works inside your existing Flow as well as your other Flows. Just click Edit in one of your flows, select New Step, go to My clipboard, and you will see the copied trigger or action.
Take note that pasted code clears each time you log out of Flow.
Have you tried Flow’s newest feature? What do you think about it? Let us know in the comments section below. Let your peers know about the latest feature of Flow by sharing this article on your social media accounts.
Aside from Robbins, the other speakers in the Flow online conference were the following:
Shane Young, “Why I Love Microsoft Flow” (Session 1)
Melissa Hubbard, “Getting Started with Flow Approvals” (Session 2)
Anton Robbins, “Things to Know Before You Flow” (Session 4)
David Patrick, “Intro to the Common Data Service in Flow” (Session 3)
Sean Bugler, “Tell a Better Story with Flow” (Session 5)
Elaiza Benitez, “Delaying Emails Based on Time Zone” (Session 6)
Daniel Christian, “PowerApps and Flow for Social Media” (Session 7)
Tomasz Poszytek, “Scopes and Run After Actions” (Session 8)
Sandy Ussia and Daniel Laskewitz, “The Flow Pro Show” (Session 9)
Scott Shearer, “Flow for SP Designer Workflow Developers” (Session 10)
Sarah Critchley, “Flow, Model Driven Apps & Cognitive Services” (Session 11)
Gabriel (Galo) Corvera, “Flow + Teams + Adaptive Cards” (Session 12)
Devin Knight, “Power BI Streaming Data sets + Flow” (Session 13)
Haniel Croitoru, “You Have an Error in Your Flow? Let’s Deal with It!” (Session 14)
Vivek Bavishi, “Sending .vcf Contact Cards with Flow” (Session 15)
Joe Unwin, “Getting Started with Custom Connectors in Flow” (Session 16)
Geetha Sivasailam, “Microsoft Flow and Azure Dev Ops” (Session 17)
John Liu, “5 Keys to make your Flows run Insanely Fast” (Session 18)
There were 29,109 people who registered for the online conference, according to Microsoft Flow senior program manager Jonathon Levesque.
If you would like to watch all the eighteen sessions, click here.