cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dan2805
New Member

Send different email if file is created or changed

Hi everyone,

 

I'm trying to build a flow to send two different emails.

 

  • One should be sent if a new file is copied (created) into a SharePoint folder

  • another if one existing file gets changed / overwritten

 

I manged to set two individual flows, and they work. However, the one "When an item or a file is modified" also triggers when adding a new file which end up in two separate emails. 

 

I also tried it with one flow and checking the dates (if changed is bigger that created) however, that also triggers yes whatever I'm doing. 

 

Dan2805_0-1629902383750.png

 

Tanks for your help 🙂

 

Daniel

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

Try using the following trigger:

When a file is created or modified (properties only) - Triggers when an item is created, or modified in a library

If you are interested in comparing dates:

 
ekarim2020_0-1629917006357.png

The flow will also trigger if the item's meta data is changed - such as renaming the file or changing any columns fields associated with the library.

Ellis

View solution in original post

2 REPLIES 2
ekarim2020
Super User
Super User

Try using the following trigger:

When a file is created or modified (properties only) - Triggers when an item is created, or modified in a library

If you are interested in comparing dates:

 
ekarim2020_0-1629917006357.png

The flow will also trigger if the item's meta data is changed - such as renaming the file or changing any columns fields associated with the library.

Ellis

That works very well! 

 

Thank you so much!

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,484)