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

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

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,997)