I maked a flow for delete a old versions from files in sharepoint.
In my first test, I have a follow response: BadRequest. Http request failed as there is an error: Request headers must contain only ASCII characters.
Error details: URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource/object is not supported for this connector. Resources: me,users Objects: messages,mailFolders,events,calendar,calendars,outlook,inferenceClassification. Uri:
_api/web/GetFolderByServerRelativeUrl('Shared Documents/Primeiros passos/Leitura plástica digital/')/Files('g21_mdn_lt_1mmt_p002a160_prof.pdf')/Versions
How I fix this?
Hi @juniordiasjfd ,
The actual http action used in the post you mentioned is sharepoint http action.
So please try this
Best Regards,
Wearsky
Detail: I used this instructions for make the flow: https://powerusers.microsoft.com/t5/General-Power-Automate/Flow-Deleting-old-Versions-on-Sharepoint/m-p/350320
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2