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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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.

Users online (1,592)