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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,015)