cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Updating Created By field on a Document library not working

I have a flow connecting a Microsoft Form to a library for business cases documents.  Every time a form is submitted, the flow runs and creates a new business case document in the library with my name displayed in "Created By" field.  This is because the created file is getting content from an existing file template created by myself.  What I need is the "Created By" field to be updated with the Form Submitter's name instead of my name. This would allow me to enable Item-Level Permissions on the library and every Form Submitter would only be able to see their own business case document.

I am following instructions using REST API outlined in this article, and modified it for a document library however the flow runs successfully without the the "Created by" field changing.  I even hard coded usernames, however my name still displays.  I am not sure what I am doing wrong, any help would be appreciated. Thank you.

ms1.pngms2.PNG

 Output status: 200

Body:

 

{
  "d": {
    "ValidateUpdateListItem": {
      "__metadata": {
        "type": "Collection(SP.ListItemFormUpdateValue)"
      },
      "results": [
        {
          "ErrorMessage": null,
          "FieldName": "Author",
          "FieldValue": "[{\"Key\":\"i:0#.f|membership|x@x.com\"}]",
          "HasException": false,
          "ItemId": 122
        }
      ]
    }
  }
}

 

 

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Updating Created By field on a Document library not working

 

Hi @tonerz82 ,

 

Please check this similar thread and see if it helps:

https://powerusers.microsoft.com/t5/Using-Flows/How-can-i-update-Created-by-Column-using-flow/td-p/4...

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (6,657)