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 / Sharepoint Document Li...
Power Automate
Answered

Sharepoint Document Library - updated Created by and Modified by (Author and Editor)

(0) ShareShare
ReportReport
Posted on by

I have a power automate that is adding a document to a document library in another site and adding metadata. The created by and modified by is the service account that is used to create the document in the library. I would like to update these columns to be that of the person that initially created the file. I am using a Send HTTP request to SharePoint, but I must not be getting the syntax correct. I can find many, many example of where folks use this when updating Editor/Author on SharePoint lists, but nothing for libraries. Maybe they are the same, but I can't seem to get the URI part correct in order to make the change. 

Maybe Send HTTP request to SharePoint isn't the way to do that or someone has a reference they could point to. I appreciate your assistance!

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,947 Most Valuable Professional on at

    Hi @AnnetteM,

     

    Can you share a screenshot of your current setup? This way we can double check your URI.

     

    The URI should include the validateUpdateListItem method:

    _api/web/lists/GetByTitle('<LibraryName>')/items(<ItemIDOfFile>)/validateUpdateListItem

     

    Below is a blog from @tom_riha who has shared an example for the Author and Editor fields. (it is a list example, but for the library it should work exactly the same).

    https://tomriha.com/how-to-change-sharepoint-item-author-created-by-with-power-automate/

     

     

     

  • AnnetteM Profile Picture
    on at

    AnnetteM_1-1718627960202.png

    Thanks to the blog reference. I was using that as a source!

  • AnnetteM Profile Picture
    on at

    I was able to re-check my syntax in the body section and found that I was using double quotes around the \'Key'\ and \'i:0#.f|membership\xxx\' sections. Thanks again for including the blog as it had me double check my syntax which was not correct!

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 246 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 176

#3
Haque Profile Picture

Haque 157

Last 30 days Overall leaderboard