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 / Rename Excel file in S...
Power Automate
Answered

Rename Excel file in SharePoint based on excel file content (specific cell)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Can someone help me with this?

When a new excel file is created in SharePoint, i want to get text content (specific cell) of the excel file and rename the file in SharePoint. 

Is this possible with Power Automate? I am grateful for help.

Categories:
  • Verified answer
    v-yujincui-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I assuming you want to rename the file based on the value in cell A3, maybe you could try the following.

    1. Here is my excel file.

    vyujincuimsft_1-1664353011328.png

    2. Here is my Flow.

    outputs('List_rows_present_in_a_table')?['body/value'][index]?['ColumnName']
    _api/web/lists/GetByTitle('Documents')/items(@{outputs('Get_file_metadata')?['body/ItemId']})/validateUpdateListItem
    {
     "formValues":[
     {
     "FieldName": "FileLeafRef",
     "FieldValue": "@{outputs('Compose')}.xlsx "
     }
     ]
    }

    vyujincuimsft_2-1664353845257.png

    vyujincuimsft_3-1664353872159.png

    Result Screenshot:

    vyujincuimsft_4-1664353893012.png

    In addition, here is a link for your reference.

    https://powerusers.microsoft.com/t5/Building-Flows/Copy-Past-file-containing-a-certain-string-in-sharepoint/td-p/1686873

     

     

    Best Regards,

    Charlie Choi

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
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard