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

Community site session details

Session Id :
Power Automate - Building Flows
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!

I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    32,892 Most Valuable Professional on at
    Re: Sharepoint Document Library - updated Created by and Modified by (Author and Editor)

    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
    Re: Sharepoint Document Library - updated Created by and Modified by (Author and Editor)

    AnnetteM_1-1718627960202.png

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

  • AnnetteM Profile Picture
    on at
    Re: Sharepoint Document Library - updated Created by and Modified by (Author and Editor)

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 659 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 386 Moderator

#3
chiaraalina Profile Picture

chiaraalina 290

Last 30 days Overall leaderboard