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 / Update modified by in ...
Power Automate
Unanswered

Update modified by in sharepoint without adding a version to file

(0) ShareShare
ReportReport
Posted on by 2,563

Hi

 

Im trying to updated the modified by field in a sharepoint list using a send an Http request.

This works fine but the last part is where i dont want this to add a new version to the file.

 

My flow publishes a major version and then i set the modified by user. This results in me getting a version history where it says published major version 2.0 (By System account) and a published major version 2.1 (By user)

 

Im using this solution: http://johnliu.net/blog/2019/2/flowninja-hack-78-modifying-modified-by-and-modified-time-with-microsoft-flow

 

But the  bNewDocumentUpdate:true dont seem to work.

Anyone know if bNewDocumentUpdate:true stoped working? Or maybe have another solution.

 

2019-10-28 19_40_15-Edit your flow _ Microsoft Flow.png

Categories:
I have the same question (0)
  • RobElliott Profile Picture
    10,323 Super User 2025 Season 2 on at

    Hi @JimmyWork, I can't answer the question but in the uri field your ID should have apostrophes ('ID') round it.

    Rob
    Los Gallardos
    If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

  • JimmyW Profile Picture
    2,563 on at

    @RobElliott Thanks 🙂 it works without also 😉

    But i need to come around updating the item without updating the version history, im just updateing the modified by field.

     

    This is how the version history looks like. And i dont want the extra .1

    2019-10-28 21_25_32-Systems Department - Workspaces Test - All Documents.png

  • Gristy Profile Picture
    2,429 on at

    not sure if it works if you modify the editor or author properites, can you try just updating something else instead to see if it reacts the same way?

  • JimmyW Profile Picture
    2,563 on at

    @Gristy It should work according to the web link.

    They are updating time and date and editor.

  • xtra1211 Profile Picture
    18 on at

    I've been struggling with the same issue ...

    HTTP update without modifying the version works fine if i'm on a minor version and making changes to any colomn.

    If I start playing with a major version, I end up with a bad gateway and message says "addings to the web site are locked".

    When using the HTTP request to change any mandatory metadata on a major version (author, modified ...) The flow will finish correctly but this will ignore the "bNewDocumentUpdate": true parameter. And then the document ends in a next minor version...

    I've tried disabling check-in/out and approval required to the library to find out how to unlock the modification. But no luck.

    I've published hundreds of documents that have a wrong setting in a column, no way to update that without updating the version to next minor version... and republish to the next major version !

    That's a shame.

  • xtra1211 Profile Picture
    18 on at

    just found that you can get through this issue using power shell as described here...

    this uses the ListItem.SystemUpdate() method.

     

    https://www.sharepointdiary.com/2015/07/sharepoint-online-update-list-items-using-powershell.html

     

    it need to be adjust to your context if you first need to filter items your are targeting...

     

    this works for my use case to make a one time bulk update however this can not be triggered from a flow. unfortunalty.

     

  • Suggested answer
    DB-20011720-0 Profile Picture
    4 on at
    I know this post is old, but I believe the issue is that the value for bNewDocumentUpdate value must be set to false if you are wanting to suppress version updates

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard