web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Help with Conditions, ...
Power Automate
Unanswered

Help with Conditions, for an Event

(0) ShareShare
ReportReport
Posted on by 13

Hello everyone, 

I've been trying to figure out what's going on with Conditions on my flow. I think I am misunderstanding something but I'm not sure what I'm missing. 


Basic idea: I want to restrict the number of submissions we have at my company. So when we get past say 10 people, we email the person to tell them they're on a waiting list. 

 

I've gotten past the turning an Array into an Object (or maybe it was the other way around.. either way I got it working). 

 

However, when I run the flow, it always says the flow is "true", even when it's not. 

Examples are linked below but the general gist: I put the outputs array > is greater or equal to > '[insert number]' 

 

Am I missing something? Does PA mark the Email as a word rather than a number? It's really confusing (and I'm on a deadline so any support would be great). 

Screenshot 2024-06-14 181926.png
Screenshot 2024-06-14 181916.png
Categories:
I have the same question (0)
  • Anil_g Profile Picture
    668 Moderator on at

    @SicklyBird 

     

    ideally for every item this is triggered ..so get response details will always get only single response details...so everytime it is less than 2..>So it always goes to yes side

     

    if you need to know the responses count ...you might need to store the responses to a list or excel and then count the number of items 

     

    cheers

     

    cheers

  • creativeopinion Profile Picture
    10,506 Moderator on at

    @SicklyBird You can avoid needing to use the Add a Row action if you use the built-in feature in MS Forms that allows you to sync your responses to to a workbook. You can enable this option by clicking on the Responses tab of your form. 

     

    Click the three dots then select Sync all responses to a new workbook option.

     

    creativeopinion_1-1718556635413.png

     

    Once you do that, you will see the workbook appear in the place of the Open in Excel option.

     

    creativeopinion_0-1718556577856.png

     

    Depending on the type of form you've created, the Excel file will be stored on your OneDrive or a SP site. I cover the two different types of MS Forms in this section of my YT Tutorial: How to Get Microsoft Form File Uploads Attached to an Email 📧

     

    In this Microsoft Power Automate Tutorial I’m going to cover where file uploads from your Microsoft Forms are saved. I’ll also show you how attach the uploaded files to an email and how to dynamically name the files and customize the recipient of the email based on the selections made in your Microsoft Form. I will also cover how to handle responses that don’t include any file uploads.

     

    I’m not going to cover how to get the values from your form since I've already covered that in a different tutorial.

    IN THIS VIDEO:

    ‌ Two types of MS Forms

    ‌ Where Microsoft Personal (OneDrive) Form File Uploads are Saved

    ‌ Where Microsoft Group Form File Uploads are Saved

    ‌ How to Add a File Upload Question to an MS Form

    ‌ How to get a Microsoft Form ID

    ‌ How to get a Microsoft Form Response

    ‌ How to Get the Dynamic Content Microsoft Form File Upload Content

    ‌ How to handle Single and Multiple Microsoft Form File Uploads

    ‌ How to use a Scope action to Organize and Group Your Flow Actions

    ‌ How to Get the File Content from an MS Form File Upload

    ‌ How to Collect All Files Uploaded to a MS Form and Attach to an Email

    ‌ How to Handle MS Form Response When a File Isn’t Uploaded

    ‌ How to Create an Email Key

    ‌ How to Send an Email to a Specific Recipient Based on Form Selection

    ‌ How to Create a Dynamic Output Based on Form Selection

     

    You can simplify your flow by using dynamic content — it could look something like this. 

    creativeopinion_28-1718560062512.png

     

    ----

    Manual Trigger

    Start with a Manual trigger while you build and test your flow. You can replace it with the Automated trigger once you've confirmed your flow works and you are ready to go live.

     

    However, I actually prefer to keep a manually triggered copy of my flow. This can help with troubleshooting if you run into issues later on, or if you want to make changes to your flow. It's also more efficient when building flows for MS Forms — instead of needing to leave Power Automate to submit a form each time you'd like to trigger your flow you can manually trigger your flow on a form that has already been submitted.

    creativeopinion_20-1718559379919.png

     

    Add a List Rows Present in a Table action. 

     

    It's important to note that by default the number of rows returned from the List rows present in a table action is 256 rows. If you expect the number of rows to be greater than 256, you'll need to toggle on pagination and set a threshold.

    creativeopinion_2-1718557191725.png

     

    creativeopinion_3-1718557209698.png

     

    Count Rows

    Insert a Compose action. Add an Expression. Use the length() function.

    creativeopinion_8-1718557646472.png

     

    Select the Dynamic content tab and insert the body dynamic content from the Filter Array action into the length() function.

    creativeopinion_5-1718557346621.png

     

    Dynamically Compose the Email Content

    Instead of using two Send an Email (V2) actions in your flow, you can use an expression to dynamically change the content of your email based on whether or not the number of rows in your Excel table is greater than or equal to your limit. In this case we'll use your example limit which is 10. 

     

    Check to See if Number of Rows is greater or equal to the Limit

    Add a Compose action to store the subject line of your email which you can then insert into the Send an Email (V2) action. I prefer to use Compose actions to run tests on expressions and verify the output. This speeds up the flow building process as you don't need to wait for an email to arrive in your inbox. 

     

    Add an expression and insert the greaterOrEquals() function.

    creativeopinion_9-1718557768696.png

     

    To learn more about how to use expressions in your flow, refer to this YT Tutorial: 7 Functions You Need to Know | ️Expression Essentials: Part 1

     

    In this section, I'll cover how to get dynamic content with an expression when the dynamic content you need isn't listed in the dynamic content menu.

     

    In the full tutorial I cover 7 functions you need to know when getting started with expressions.

    1️⃣ empty()

    2️⃣ coalesce()

    3️⃣ equals()

    4️⃣ if()

    5️⃣ concat()

    6️⃣ length()

    7️⃣ split()

     

    I cover how to use these functions in expressions and I’ll also cover common mistakes when it comes to writing expressions and show you a few tips and tricks along the way.

     

    As a beginner or even an intermediate flow builder—expressions can seem a bit complex at first, I’m going to try to simplify it for you. If you want to level up your flows by writing expressions—keep watching!

     

    IN THIS VIDEO:

     What is an Expression?

     What is a Function?

     What Does Wrapping a Function Mean?

     How Do I Insert an Expression?

     How to Use a Compose action

     How to Navigate the Expression Builder with Arrow Keys

     How to use the Expression Tooltip

     Common Mistakes When Writing Expressions

     How to differentiate a null from an empty string

     How to Get Dynamic Content When it’s Not Listed

     How to Use a Get Item Action to Verify Dynamic Content Output

     How to Convert Strings to Lower Case

     How to Troubleshoot the if() Function

     

    ---

    The greaterOrEquals() function takes two parameters:

    greaterOrEquals([value: string|float|integer], [compare to: string|float|integer]

    Click on the Dynamic Content tab and insert the output from the Compose action above. 

    creativeopinion_10-1718558066318.png

    Add a comma and enter the value to compare it to. Important: You must be comparing the same type of values to each other. 

    creativeopinion_11-1718558271010.png

     

    Run a test. The greaterOrEquals() function will return a true or false value. Review the output of the Compose action. In my example, the number of rows in my table is 26. 

    creativeopinion_12-1718558329881.png

    Dynamically Output Subject Line

    Next, you'll need to use the if() function to dynamically output a subject line. The if() function takes three parameters:

    if([boolean value aka true/false], [value if true], [value if false])

    Click on the expression to edit it. We're going to wrap the expression in the if() function. Type in if with an opening parenthesis.

    creativeopinion_13-1718558819401.png

    Press the down arrow key to go to the end of the expression. Add a comma. Tip: Pay attention to the tooltip as it'll bold the text of the current parameter you are defining.

    creativeopinion_16-1718558903750.png

    If the number of rows in the spreadsheet is greater or equal to the limit, you want to output a subject line that notifies the submitter they are on the waitlist. Type in whatever subject line that is between single quotes. 

    creativeopinion_17-1718559003023.png

    Add another comma and type in the subject line you want to output if the value is false (aka the number of rows in the spreadsheet is greater than or equal to the limit). Make sure you add a closing parenthesisImportant: Whenever editing your expressions make sure you press update to save your changes.

    creativeopinion_18-1718559134402.png

    Run a test.

    creativeopinion_19-1718559197971.png

     

    Repeat this step for the email body. In my example I'm using another Compose action to compose the email body. You could omit this Compose action and simply insert the body content directly in the Send an Email V2 action.

    creativeopinion_21-1718559468054.png

     

    Send an Email (V2)

    Add a Send an email (V2) action. When building and troubleshooting a flow that includes an action that sends an email or teams message, I always insert my email address in the recipient field until I can confirm the flow works.

     

    I like to put a line of text in the body of the email or message that outputs the actual recipient of the email/notification.

     

    I've inserted the output of the Compose actions that have the email subject line and body into the Send an Email (V2) action.

     

    creativeopinion_22-1718559587372.png

    Run a test. Review the email.

    creativeopinion_23-1718559744975.png

    For testing purposes, I'll adjust the limit to 30 and run another test. 

    creativeopinion_24-1718559796696.png

     

    Because my row count is 26—the subject line/body of the email indicates to the user they've been signed up.

    creativeopinion_25-1718559868735.png

     

    Replace your Manual Trigger

    I'd recommend creating a copy of your flow (keeping a manual copy of your flow for testing/troubleshooting purposes). Replace the Manual Trigger with the When a new response is submitted trigger.

     

    Insert the Response Id dynamic content into the Response ID field. 

    creativeopinion_26-1718559990309.png

     

    Insert the Responders' email dynamic content into the recipient field of the Send an Email (V2) action. 

    creativeopinion_27-1718560016338.png

    Run another test.

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

     

  • SicklyBird Profile Picture
    13 on at

    Thank you for the details, this helped me somewhat which I really appreciate. 

    This issue is, I want the condition to work because I want to send a longer email with details if they are signed up. It means having to send a different email at a later date. 

    This flow worked and is really helpful so thank you. But for some reason the condition is not working for me. 

    Thanks again

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 124 Super User 2026 Season 1

#2
Ellis Karim Profile Picture

Ellis Karim 52 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 50

Last 30 days Overall leaderboard