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

Community site session details

Session Id : 62osC6c0inCfU/93aBLr1D
Power Apps - Building Power Apps
Answered

Upload file to SharePoint online list using graph API through PowerApps

Like (0) ShareShare
ReportReport
Posted on 15 May 2023 14:38:50 by

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)

  • Verified answer
    iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on 27 Oct 2023 at 08:33:43
    Re: Upload file to SharePoint online list using graph API through PowerApps

    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

    iAm_ManCat_0-1698394609273.png

     

     

    To call other graph API functions you must now use the 'Invoke an http request' with Azure AD action.

     

    Cheers,

    Sancho

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete