
Announcements
Hello, I am currently building a Power Automate flow that creates several Sharepoint Pages by copying the same template page and renaming them to match the values in an Excel file. I am basing this flow on this post.
However, I am facing a problem when it comes to renaming the newly created pages themselves. I can successfully update the page Title using the 'Update Item' function, but cannot get the HTTP request to target the Page Name successfully. I can't successfully target the property. This is what my flow looks like right now:
I added a Compose action to make sure that the property "FileName" exists and is targettable. The expression for that action is this
outputs('Send_an_HTTP_request_to_SharePoint_CheckoutPage')?['body']?['d']?['FileName']
The action returns the expected value pre-changes, but then when I use the JSON above in the body of the Rename HTTP action, it doesn't rename the page. The flow runs successfully, but the pages continue to have the default name from the copy action.
I have tried following the post I reference above and use the "FileLeafRef" property instead of "FileName" but obtain the same result.
Could someone please help me? How do I tell the HTTP action to target the "FileName" property and change its value?