Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Add a condition to a flow

 17/10/2017
 2 minutes de lecture
 Contributeurs
o

Specify that a flow performs one or more tasks only if a condition is true. For
example, specify that you'll get an email only if a tweet that contains a keyword is
retweeted at least 10 times.
Prerequisites
 Create a flow from a template - this tutorial uses this template as the example

Add a condition
1. In Microsoft Flow, select My flows in the top navigation bar.

You might need to sign in if you're not already signed in.


2. In the list of flows, select one of the flows that you've created.

This tutorial uses an example with a Twitter trigger and a SharePoint action.

3. Select Edit flow.


4. Under the last action, select New step.
5. Select Add a condition.

6. On the Condition card, select an empty area in box on the left.

The Dynamic content list opens.

7. Select the Retweet count parameter to add it to the box.


8. In the box in the middle of the Condition card, select is greater than or equal
to.
9. In the box on the right, enter 10.

10. Select the header of the action you want to use inside the condition (such
as Create item) and drag it underneath the text that reads If yes.

When you release the cursor, the action moves into that box.
11. Configure the action as necessary.
12. Save the flow.
Edit in advanced mode
You can also select Edit in advanced mode to write more advanced conditions. You
can use any expression from the Workflow definition language in advanced
mode. Learn about all available expressions.
Next steps
Learn how to use expressions in conditions in advanced mode.

You might also like