cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

MS Flow - Send mail when Forms has a specific number of responses

have the same request as mentioned below.

https://powerusers.microsoft.com/t5/General-Flow-Discussion/Send-mail-when-Forms-has-a-specific-numb... 

 

and followed the following steps

https://powerusers.microsoft.com/t5/Building-Flows/Limit-partcipants-on-a-form-and-send-out-emails-w...

 

and added event using this so it save in particpants calendar

https://www.youtube.com/watch?v=KQzU1gKZYIY&t=3s 

 

It is not doing its first step. after 10 it should send diff message .but it just send email "You are on the list" even though number or particpant above 10. when i changed to "greater than or equal to" it only send "you are on waitlist"

 

Below are pictures for your reference. Many thanks..

 flow 1.JPG

 

flow 2.JPG

 

 

kindly help me

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Hi @SIqbal_2019 ,

As I said, the 'Response Id' will increase 1,when a new response is submited.

From the pic we can see, you have tested with the 'Resgistration 2019' form more than 10 times.

So the ‘Response Id’ is more than 10.

When you set the condition as Response Id is greater than or equal to 3, the flow will always go to 'If yes' step.

You can add a Compose action in the flow, to check the value of 'Response Id'.

Capture.PNGCapture1.PNG

If you want the 'Response Id' start from 1, you need create a new forms.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Highlighted
Super User II
Super User II

Try adding the condition after the Apply to Each loop in a new step. So the Apply to Each should contain the Get Response Details and Compose. If that doesn't work, try moving the compose action outside of the Apply to Each as well. 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Highlighted
Solution Sage
Solution Sage

Hi @SIqbal_2019 ,

When a new response is submitted, the Response Id will increase 1.

So if you set the condition as Response Id is equal to 10, only the tenth response will go to the 'If yes' step, the other response will go to 'If no' step.

If you set the condition as Response Id is greater than or equal to 10, the 1-9 response will go to the 'If no' step, 

the other response will go to 'If yes' step.

So please make clear of your scenario, when you set the condition.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted

@v-zhos-msft  I had tried chaging to greather than or equal to 10 but it didnt help me. 

 

I am trying to understand your second step .. FYI I am new to flow

Highlighted

Hi @SIqbal_2019 ,

As you said, you have set the condition as Response Id is greater than or equal to 10.

And you have submitted the response over 10 times, so when you trigger the flow, it will always go to the 'if yes' step with the email "you are on waiting list".

I was confused about your scenario.

When do you want to get the "you are on waiting list" email, and when do you want to get the "You are on the list" email?

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Highlighted

@v-zhos-msft  Hi Again:

 

If we have 10 seats for a training, when its more than or equal to 10, it should send email to respective "You are on wait list"..if its less than 10, it should send "You are on the list or have been selected" 

 

Regards,

I have tried again with very basic flow but keep getting same message or both at the same time.

 

does this really work? please help

response.JPGemail.JPG

Highlighted

Hi @SIqbal_2019 ,

As I said, the 'Response Id' will increase 1,when a new response is submited.

From the pic we can see, you have tested with the 'Resgistration 2019' form more than 10 times.

So the ‘Response Id’ is more than 10.

When you set the condition as Response Id is greater than or equal to 3, the flow will always go to 'If yes' step.

You can add a Compose action in the flow, to check the value of 'Response Id'.

Capture.PNGCapture1.PNG

If you want the 'Response Id' start from 1, you need create a new forms.

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (12,740)