web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Copy file and rename w...
Power Automate
Unanswered

Copy file and rename with details from sharepoint list

(0) ShareShare
ReportReport
Posted on by 54

Good morning,

I have files in folder-A that are named after the items in a sharepoint list and I need to copy them into folder-B, adding to filename the category taken from the list, please see example below:

in folder-A the system create file "Item 1", when the file is created, I would like it to be copied to folder-B and saved as "Item 1 Cat-A" (the process to create the file in folder A is already in place, just need to know how to make the copy and rename)

My sharepoint List
TitleCategory
Item 1Cat-A
Item 2Cat-B
Item 3Cat-A
Item 4Cat-C
Item 5Cat-A

 

Note: I can set up the flow "when a file is created then copy to" but i miss the step in between to get the category into filename.

Categories:
  • Gopala_Krishna Profile Picture
    1,495 on at

    @fabiogiallo 

    You can make use of the Get Items action to fetch the details related to the items, from there you will be able to see the category name associated with each item.

     

    For renaming the file or combining the putting the file name as combination of item name and category name you can make use of the concat() function where in you can pass both of these as input and it will produce the name.

     

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    if the information shared helps you, please consider giving a thumbs up and mark solution as resolved

  • fabiogiallo Profile Picture
    54 on at

    Sorry to be a pain, i am quite a beginner with flows, i think i should create some sort of condition (if filename is equal to  item title, then...) but all my attempts failed. Would you please show me step by step?

    Thank you.

  • fabiogiallo Profile Picture
    54 on at

    Hi, 

    i tried this but, despite it has been tested ok, it doesn't create the copy at all.

    fabiogiallo_0-1614787193596.pngfabiogiallo_1-1614787259589.png

    any help? thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard