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

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,181 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

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

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard