Hello,
I am trying to attach a file to the SharePoint list item using graph API, through power apps. The file is getting attached to the list item. I am also able to add/remove files for existing list items. But Power Apps shows the below error message, even though the file is successfully added/removed.
Office365Groups.HttpRequest failed: { "error": { "code": "BadRequest", "message": "Resource not found for the segment 'getByPath'.", "innerError": { "date": "2023-05-13T18:01:39", "request-id": "c31fbe16-3fce-4397-a1a9-191f4a3a5f0e", "client-request-id": "c31fbe16-3fce-4397-a1a9-191f4a3a5f0e" } } }
This is the graph API that I have used.
Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/sites/9f9a3637-d385-4e3c-a4db-819401bc0bb0/lists/c3f69134-c964-4243-baf5-1455512d3086:/"& ThisRecord.Name &":/content","PUT",ThisRecord.Value)
Hi,
Just so you're aware and so you can prepare your solution so that it doesn't affect your app when they turn it off:
The Office365Groups API call exploit was noted and fixed by Microsoft - this is why they deprecated the V1 action.
The V2 action only allows calls to the /groups segment, and the V1 action will be fully deprecated (and no longer be available) in the near future
You can see more here in the Connector reference for Office365Groups
To call other graph API functions you must now use the 'Invoke an http request' with Azure AD action.
Cheers,
Sancho
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2