cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

Limiting registrants to a certain number

I've combined a few forum answers to create a flow that pulls the event selection from a form.  Then, if the number of registrants for that specific event (a question on the form) is greater than or equal to 21, the form should send an email to the person who completed the form.  If the number of registrants for the event is 20 or fewer, then the person should receive the calendar invite. I had the flow working before the registrant limitation.  Meaning, people simply completed the form and received the corresponding invite based upon the event they selected. What am I missing or doing wrong in the compose and condition part of the flow?

flow 1.PNGflow 2.PNGflow 3.PNGForm 1.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @ShaunLowy,

 

The way you using the answer to a question to determine if the attendee over the limiting registrants is not correct.

You should check the length of attendees array (number of attendees) if greater than or equals to 20.

Attendees for the event separated by semicolons, so we could use split() function convert attendees string to an array, then use the length() function to get number of array.

length(split(outputs('Compose'),';'))

Screenshot 2021-01-01 134632.jpg

 Screenshot 2021-01-01 135408.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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

1 REPLY 1
Community Support
Community Support

Hi @ShaunLowy,

 

The way you using the answer to a question to determine if the attendee over the limiting registrants is not correct.

You should check the length of attendees array (number of attendees) if greater than or equals to 20.

Attendees for the event separated by semicolons, so we could use split() function convert attendees string to an array, then use the length() function to get number of array.

length(split(outputs('Compose'),';'))

Screenshot 2021-01-01 134632.jpg

 Screenshot 2021-01-01 135408.jpg

 

Best Regards,
Community Support Team _ Lin Tu
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (62,702)