cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

post a message in Teams when a Sharepoint file is modified or created

Hi everyone,

 

When a file is modified or created in a specific sharepoint file, i would like to post a message in a Team channel saying : "file name" has been "modified/created" by "name of the person".

 

In the dynamic contents of Sharepoint File, I have "file name" so this is ok.

Do you know how I can get the "modified" or "created" ?

And also, how can I get the name of the person that created/modified the file?

 

thanks a lot,

 

Christian 

1 ACCEPTED SOLUTION

Accepted Solutions

All available in Dynamic Content 🙂 

 

2019-04-09_14h15_37.png

View solution in original post

6 REPLIES 6
FilGouveia
Regular Visitor

Standard fields in a document library include 'Created' (Date), 'Created by' (Person), 'Modified' (Date) and 'Modified by' (Person)

 

Should give you the info you need

Anonymous
Not applicable

Thank you @FilGouveia Smiley Happy

 

Do you know if I can get this data from dynamic content?

Can it be retrieved through a function?

 

Thanks,

Christian 

All available in Dynamic Content 🙂 

 

2019-04-09_14h15_37.png

Anonymous
Not applicable

Thanks !

I will play with this.

The message from the bot is not very sexy inside the conversation, but it does the job.

 

I couldn't find it because I was using "When a file is created or modified in a folder" and not "properties only".

What is the difference?

 

Also, how can I do to have different messages when a file is created and when a file is modified?

With some logical functions ?

If you use When a file is created or modified in a folder your next step would need to be to get the File properties to pick up the metadata (Modified by, Modified date etc). "Properties only" does that anyway

 

Use conditions - I havent tested the below but may work. You might have to fiddle with the UTCNOW() 

 

2019-04-09_15h50_10.png

Anonymous
Not applicable

Thanks a lot for your help @FilGouveia !


Have a great day!

Christian 

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.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,035)