cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KiranGongani
Frequent Visitor

How to rename SharePoint list attachment file name or append the date/time to the file name

Hi,


I would like to create flow to rename the file name of the sharepoint list attachment. Please let me know if anyone has any idea on how to do it. I am new to MS-Flow. 

For e.g:

User uploads Lotus.jpg and I want to rename it as June-19-5:00PM-Lotus.jpg

Or even June-19-Lotus.jpg is fine. 


Thanks in advance.

Kiran

21 REPLIES 21

Hello @yashag2255 

 

I have applied what you are describing but this changes every time the name of the attachment. So if I want the next day to attach a new file then modifies all the previous to the today's date. Do you know how this can stop and just apply the rule when a new attachment is added?

Hi @yashag2255 
Thanks for this solution. I have one more question:
What trigger are you using before 'get attachements'? I use a trigger 'when item created or modified'. However, this seems to loop so the attachment file name keeps on adding the date.

Is there a trigger to only change the attachment you upload or maybe condition you can apply? 

Kind 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 (2,722)