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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,786)