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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Rename attached file name
Power Automate
Answered

Rename attached file name

(0) ShareShare
ReportReport
Posted on by 351

Hi community,

 

I have a flow to upload attachments (.jpg) from microsort forms to a sharepoint folder. The files are uploaded with the same name as the original attachment, but I would like the name to be the answer to one of the questions on the form. How could I achieve this?.

 

Francisco77_0-1682610660562.pngFrancisco77_1-1682610747840.png

 

 

Parse Jason: 

 

{
    "type""array",
    "items": {
        "type""object",
        "properties": {
            "name": {
                "type""string"
            },
            "link": {
                "type""string"
            },
            "id": {
                "type""string"
            },
            "type": {
                "type""null"
            },
            "size": {
                "type""integer"
            },
            "referenceId": {
                "type""string"
            },
            "driveId": {
                "type""string"
            },
            "status": {
                "type""integer"
            },
            "uploadSessionUrl": {
                "type""null"
            }
        },
        "required": [
            "name",
            "link",
            "id",
            "type",
            "size",
            "referenceId",
            "driveId",
            "status",
            "uploadSessionUrl"
        ]
    }
}
 
Thanks for youre help¡¡.
Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Francisco77 

     

    Give a try with this approach of renaming sharepoint file 🙂

    https://pnp.github.io/blog/post/how-to-rename-files-in-sharepoint-with-power-automate/

     

     

  • Francisco77 Profile Picture
    351 on at

    Thanks Nived,

    I would expect that the name could be changed via dynamic content (associated with the question) somewhere in the flow in power automate.
    Thanks anyway for the information.

     

    Regards,

  • Verified answer
    Rhiassuring Profile Picture
    8,690 Moderator on at

    Where it says "Create File", you are inputting the name that it gives you. Just don't use that.  You'll still need the extension from the Name (which you can get using text functions.) 


    So for example, this works:

     

    Rhiassuring_0-1682630464379.png

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard