Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

SharePoint REST API EndPoint

(0) ShareShare
ReportReport
Posted on by 50

Is it possible for me to HTTP Action for SharePoint Rest API endpoint e.g. http://site url/_api/web/lists(guid'list GUID')?

  • mbrocchi1 Profile Picture
    110 on at
    Re: SharePoint REST API EndPoint

    I'm not sure if this is still relevant to you but I recently posted a video using the new SharePoint HTTP request action in Flow. I call the set item permission and Break inheritance end points to secure SharePoint List items after they are posted via a PowerApps application -

     

    SharePoint Item Level Security in PowerApps and Flow

     

    Hope this helps.

  • ankitkhandekar Profile Picture
    2 on at
    Re: SharePoint REST API EndPoint

    Hi @smerchant.

     

    I am able to register the app and use REST API with Bearer auth token. But this token is expiring in 30 mins. Do we have any other option to provide auth token in HTTP call? Or any way to regenerate bearer token wheneven the HTTP call is required through flow?

  • panterra Profile Picture
    205 on at
    Re: SharePoint REST API EndPoint

    Hi @smerchant

     

    I would also like to see how you registered the app.  I am getting this error returned to Flow when I attempt to make the call: 

     

    Access denied. You do not have permission to perform this action or access this resource

     

    Thank you! 

    Sean

  • Community Power Platform Member Profile Picture
    on at
    Re: SharePoint REST API EndPoint

     

    @smerchant could you give me the details or the app registration?

    I'm used to Azure App registration..

     

    Thanks!

  • smerchant Profile Picture
    50 on at
    Re: SharePoint REST API EndPoint

    @Anonymous Yes, I did it for REST API also e.g. I called 'https://tenant.sharepoint.com/_api/web/lists/getbytitle('Documents')/items' and I get the results.  The process for registering app is different but it works. Please let me know if you need more details.

  • Community Power Platform Member Profile Picture
    on at
    Re: SharePoint REST API EndPoint

     

    @smerchant, did you managed to make it work for a SharePoint Rest API call or for a Micorosft Graph?

     

    Because a Rest API works different.

     

    I made it work like this: Made a Azure HTTP trigger that return an accesstoken that can be used in de bearer.

    Why the Azure function? because a certificate can be implemented over there.

     

    reference: http://johnliu.net/blog/2016/5/azure-functions-js-and-app-only-updates-to-sharepoint-online?rq=accesstoken

     

     

  • smerchant Profile Picture
    50 on at
    Re: SharePoint REST API EndPoint

    I managed to solve this issue by using Authiencation: 

     

    1) Register an app

    2) Use the Application ID and Client Secret

    3) Make a Post request to get a auth token

    4) Use this token for further get or post requests.

     

    Hope this helps.

  • Community Power Platform Member Profile Picture
    on at
    Re: SharePoint REST API EndPoint

    I am facing same issue. It will be good if microsoft comes up with their product compatibility first.

  • Community Power Platform Member Profile Picture
    on at
    Re: SharePoint REST API EndPoint

    Any updates? I’m struggling with the same issue.. 

  • smerchant Profile Picture
    50 on at
    Re: SharePoint REST API EndPoint

    Thanks @v-micsh-msft.  I am struggling with authentication I tried Basic auth but it didn't work.  Please, could you guide me on authentication?  I don't want to use swagger or webhook, is it possible to use http with authentication? 

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow