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
Dual Super User

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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (3,752)