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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / changing file properti...
Power Automate
Unanswered

changing file properties using HTTTP sharepoint Request

(0) ShareShare
ReportReport
Posted on by 78

Hello all,

 

i was following this post:

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

 

which seem to be working fine.

However, when the file is located in a subfolder i cannot find out the correct syntax.

The offical MS page doesn't help much:

https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest

 

e.g. Uri: "_api/web/lists/getbytitle ('/subfolder/subfolder/subfolder')/items(1)/validateUpdateListItem" always throws the error that the folder does not exist.
Can someone give me a hint how the REST:Api Call should look like when the file is located in a subfolder ?

Categories:
I have the same question (0)
  • sudharsan1985 Profile Picture
    1,325 on at

    Hi @artivo 

    You cannot use getByTitle and then pass in the folder hierarchy. Please follow the below steps and it was tested from my end and its working.

    • Use the below API method to find the file and its item id.
    _api/web/GetFolderByServerRelativeUrl('Sample Documents/Folder 1/Folder 11/Folder 111/')/Files('Most Viewed Policies.csv')/ListItemAllFields
    • Again use the HTTP action with the following query to update the item
    _api/web/lists/getbytitle('Sample Documents')/items(@{outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']?['Id']})/validateUpdateListItem

    You have to pass the item id from the first HTTP action and then follow the same as described in the link. It should work. Please try it out and let me know.

     

  • artivo36 Profile Picture
    78 on at

    Hello @sudharsan1985 ,

     

    i tried around with your hints but running through various error messages. Latest states that the JSON is malformatted.

    To avoid some pingpong posting - would you be available for a remote session ?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard