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 / retrieve previous file...
Power Automate
Unanswered

retrieve previous filename in case of shrepoint rename file (document library)

(0) ShareShare
ReportReport
Posted on by

Hi, I have a file library that I need to synchronize with an FTP folder. Everything works fine in case of file creation, deletion, and modification. What I can't achieve is when a file is renamed in SharePoint. In this case, the modification trigger is triggered, but I don't know how to retrieve the previous file name in order to rename it in the FTP. Thanks.

Categories:
I have the same question (0)
  • HenWang Profile Picture
    Microsoft Employee on at

    Hi @apellizzari ,

     

    For now, I think this is not possible to achieve in power automate flow. The file name information could not be captured before the user change the file name. Even the "Get changes for an item or a file (properties only)" action is not able to capture the value of the file name.

     

    I did think about other way like creating a new sharepoint list to hold all of the file names and do the filter action after someone change the file name and make the sync for the file in the FTP, but this would be too complicated and not ideal for this request.

     

    Best Regards,

    Hen Wang

  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    I noticed the other day that the ODATA call against a SharePoint list returns the original column names. Might be interesting to try the same with a document library.

  • apellizzari Profile Picture
    on at

    I also tried to make a versioning HTTP call in SharePoint, but the previous file name is not returned.

    {
    "d": {
    "results": [
    {
    "__metadata": {
    "id": "https://xxxx/ddf_doc_commerciale/_api/SP.FileVersiona43d0a97-1390-4a29-8e0d-397ba6a7f8e8",
    "uri": "https://dxxxx/_api/SP.FileVersiona43d0a97-1390-4a29-8e0d-397ba6a7f8e8",
    "type": "SP.FileVersion"
    },
    "CreatedBy": {
    "__deferred": {
    "uri": "https://xxxx/_api/SP.FileVersiona43d0a97-1390-4a29-8e0d-397ba6a7f8e8/CreatedBy"
    }
    },
    "CheckInComment": "",
    "Created": "2023-04-10T07:46:25Z",
    "ID": 512,
    "IsCurrentVersion": false,
    "Length": "31527",
    "Size": 31527,
    "Url": "_vti_history/512/Documenti condivisi/Immagini_sito/FA00078406B0____.JPG",
    "VersionLabel": "1.0"
    },

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard