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

Community site session details

Session Id : UKqZMPWD0d7dewXP2iMF74
Power Automate - Building Flows
Answered

Renaming Files uploaded to Sharepoint Document Library via PowerApps

Like (0) ShareShare
ReportReport
Posted on 17 Apr 2020 03:10:57 by 81

Hello,

I have built a PowerApp that is very basic and based on a SharePoint Document Library.  The libary contains 4 columns used by the app (Name [which is the attachment when uploaded], Client, Billing Cycle, Service. 

The Client, Billing Cycle and Service Columns are all "Choice" type that I use in the App.  I have a flow that grabs the attachment and the dropdown values in the App, creates a JSON string and some variables and uploads it to the library.  It works well and puts all the files in their respective folders.

The issue I have right now is that there is no consistent naming convention on the files.  I want to use the values in the Drop Down to force a file naming convention for consistency.  

How do I take these values (which I convert to variables) and use them to rename the files?  

Possible?

  • Verified answer
    Amghost Profile Picture
    81 on 17 Apr 2020 at 11:17:04
    Re: Renaming Files uploaded to Sharepoint Document Library via PowerApps

    Got it.

    It was easier than I thought.

    In the Create File SharePoint control, all I had to do was put my variables in there and it works to rename the file what I want.

    FlowName.JPG

     

  • Verified answer
    yashag2255 Profile Picture
    24,658 Super User 2024 Season 1 on 17 Apr 2020 at 10:26:17
    Re: Renaming Files uploaded to Sharepoint Document Library via PowerApps

    Hi @Amghost 

     

    If you want the user to provide a text input for the file name, you can create a text input box on the app and make as a required entry to trigger the flow. On this text input box set condtions on the way you want the text to be (for example a specific number of characters or characters only etc) and then in Power Automate while creating the file you can use this text and the utcnow('MM-yy') to append the current month and year to the file name and make it more consistent. Again there are a lot of ways you can do this. 

     

    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • v-litu-msft Profile Picture
    on 17 Apr 2020 at 07:22:05
    Re: Renaming Files uploaded to Sharepoint Document Library via PowerApps

    Hi @Amghost 

     

    There is no action to rename SharePoint files directly currently. Maybe you could consider using "Send an HTTP request to SharePoint" action to rename the file.

    You could refer to the following image, the red line marked is my library name:

    Besides, for more information about SharePoint HTTP request, please refer to the link:

    https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest

    Please take a try.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete