I am wracking my brain to find a way within SharePoint to overwrite the Modified By
column value of an item with the value within the Created By
column.
I have scoured the internet and have found CSOM examples here on SE, but they do not answer my specific dilemma, as I am attempting to do this specifically through JSON Composers and an Sending an HTTP request to SharePoint using the output of those JSON Composers.
As a reference, I am using this article to give me the biggest bulk of work, and I have the JSON Formatted correctly, but it still will not update the Modified By
parameter of a file. I have disabled all other flows which may modify the file to ensure this change should be done.
My current JSON input from the HTTP Request looks like this:
[
{
"FieldName": "Editor",
"FieldValue": "[{\"Key\":\"i:0#.f|membership|[email protected]\"}]"
},
{
"FieldName": "Title",
"FieldValue": "SomeTitleOfFileSinceTitlesAreNotPrePopulatedinSharePoint.pdf"
}
]
I know my JSON works appropriately for the Title field, as the Title field updates appropriately, AND, my version of the file does not increment up so I know the final line is appropriately working as well! I feel like I'm missing something really really simple. . .
I've also tried using the odata
("Created By"
) Dynamic Content values pulled directly from the body of the file, as well as the ("Created by Display Name"
) Dynamic Content value. I am populating the "i:0#.f. . .
Key using ("Created by Claims"
) Dynamic Content value as well. Below are screenshots of my flow:
I am baffled by this and am seriously hoping I'm forgetting something or using "" when I should be using '' etc.
Full Control
permissions for the Library/List you are trying to work in for these to stick.