Yes, that is possible.
Please follow the article below:
And check the blog below for how to use HTTP Action under Microsoft Flow:
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?
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.
@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.
@Ncls 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.
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
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?
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 -
Hope this helps.
Speakers, submit your sessions now! Call for speakers ends Feb. 10!
We've updated and improved the layout and uploading format of the Power Automate Cookbook!
Fill out a quick form to claim your user group badge now!
We've given our badges an overhaul and also added some brand new ones!
Learn how to build the business apps that you need.
Find out where you can attend!
Watch & learn from the Power Automate Community Video Gallery!