ערוך

שתף באמצעות


Add a condition to a cloud flow

Use a condition to specify that a cloud flow performs one or more tasks only if a condition is true or false. For example, you can use a condition that indicates that you'll get an email only if a tweet that contains a keyword is retweeted at least 10 times.

Here's a video tutorial about conditions.

Prerequisites

Create a cloud flow from a template. This tutorial uses this template as the example.

Add a condition

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

  1. Sign into Power Automate.

  2. On the left pane, select My flows.

  3. On the list of flows, select the flow you want to edit by placing a check mark in the circle and then selecting More commands (the three dots).

Screenshot of the More commands icon.

  1. Select Edit.

  2. Under the last action, select New step > Condition.

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

    The Dynamic content list opens.

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

  5. In the box in the middle of the Condition card, select is greater than or equal to.

  6. In the box on the right, enter 10.

    Screenshot of the Condition card.

    Now that you've configured the condition, continue with the following steps to send an email if the Retweet count is more than 10.

  7. Select Add an action on the If yes send of the condition.

  8. Enter Send an email into the search box, and then select Send an email (V2).

    Screenshot of choosing the Send an email action.

  9. Configure the Send an email (V2) card to your liking, indicating the contents of the email that the flow sends if the Retweet count is greater than 10.

    You can also configure the If no side of the condition if you'd like to take an when the Retweet count is less than 10.

  10. Save the flow.

Tip

You can create complex conditions by using the Add button on the condition card.

Screenshot of the Add button to add complex conditions.

Learn about all the available expressions.

Next step

Learn how to use expressions in conditions in advanced mode.