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

Top Solution Authors
Top Kudoed Authors
Users online (1,179)