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
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Top Kudoed Authors
Users online (1,641)