cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudheermadduru
Helper III
Helper III

How to stop multiple emails while connecting to the list

Hi,

I have written PowerShell script1 to update list item of column TriggerEmail=Yes

Now in MS Flow1 I am checking if column TriggerEmail= Yes and triggering email1

Now I have written Powershell script2 to update list item of column FinalReminderTriggerEmail=Yes

Now in MS Flow2 I am checking column if FinalReminderTriggerEmail=Yes and triggering email2

But unfortunately, email1 and email2 are getting triggered.

Finally I need only email2 to be triggered after running the script2 to update list item of column FinalReminderTriggerEmail=Yes

To achieve this I can’t switch off MSflow1 as MSflow1 is still triggering the email1 due to 9000 items.

Also I cannot create another script to clear TriggerEmail=Yes as MSflow1 is still triggering the email1 due to 9000 items.

Please share your ideas/thoughts to eradicate the issue.

Regards,

Sudheer

 

 

3 REPLIES 3
RezaDorrani
Dual Super User II
Dual Super User II

Hi @sudheermadduru 

 

Use MS Flow trigger conditions to onyl trigger flow based on condition

https://www.youtube.com/watch?v=j-gP-E6CCE4

 

 

ScottShearer
Super User
Super User

@sudheermadduru 

I suggest using a trigger condition in your first Flow that checks if TriggerEmail = yes and FinalReminderTriggerEmail = No.  If the condition is not met, the Flow ends.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
v-litu-msft
Community Support
Community Support

Hi @sudheermadduru,

 

Has your problem been solved?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,027)