cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Takami
Frequent Visitor

A simple flow to trigger an email when a flag is set to 1

Hi, I'm sorry if this question seams to be very stupid, but I'm struggling doing a very simple flow:

 

I have a list of users in sharepoint

When I set a flag "WelcomePackageSent" to 1 for a specific user

I want to send this user an email

 

The steps i should have:

  • When an element is created of modified
  • Fetch the data of this line
  • If the flag of this line is now set to 1
  • Send this user an email

 

The issue i'm facing is i'm unable to fetch the only data of the line that just have changed and i get a foreach loop. for all the users in my list.

Any ideas?

 

Many thanks in advance for your help

1 ACCEPTED SOLUTION

Accepted Solutions
AnthonyAmador
Community Support
Community Support

Hi @Takami 

 

There are no stupid questions when you are learning, I think the action you have to use is "get item", so that way you only "call" the item (in this case) that its being modified, I share an example here.
I made this basic SP list.

AnthonyAmador_0-1622756032965.png

This flow trigger and it will check what is the number in the "Number" column and if is 1 it sends an email to the email that is in the email column.

AnthonyAmador_1-1622756095397.png

AnthonyAmador_2-1622756118352.png

And I think that's it, the action "Get item" just gives you the exact item in this case that is being modified, so you can use the dynamic content of that item.

 

Hope this helps you to achieve your goal, keep learning.

Any questions let me know.

 

Regards. 

 

View solution in original post

1 REPLY 1
AnthonyAmador
Community Support
Community Support

Hi @Takami 

 

There are no stupid questions when you are learning, I think the action you have to use is "get item", so that way you only "call" the item (in this case) that its being modified, I share an example here.
I made this basic SP list.

AnthonyAmador_0-1622756032965.png

This flow trigger and it will check what is the number in the "Number" column and if is 1 it sends an email to the email that is in the email column.

AnthonyAmador_1-1622756095397.png

AnthonyAmador_2-1622756118352.png

And I think that's it, the action "Get item" just gives you the exact item in this case that is being modified, so you can use the dynamic content of that item.

 

Hope this helps you to achieve your goal, keep learning.

Any questions let me know.

 

Regards. 

 

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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
Top Kudoed Authors
Users online (1,240)