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 Excel file in S...
Power Automate
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard