cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
aj
New Member

Authentication in Http Action in Flow

Has anyone tried invoking web services or REST api calls from Microsoft Flow?

 

I'm particularly curious whether we can invoke any REST api or Web Service...

In a test application, I tried to have an Http action invoking SharePoint List Item update using REST url, but unable to figure out how to get or pass the access token or specify a connection (as I would normally do on a Create List Item action)...

What & how to pass data in the Authentication box?

 

 

4 REPLIES 4
aj
New Member

Has nobody tried this? Or did I ask a really stupid question? Smiley Happy

 

I did try few things yesterday. Looks like the Authentication box needs JSON input with the type specified (Basic, ActiveDirectoryOAuth, Raw etc.). Tried to using ADOAuth (on a SharePoint Update List Item Rest API), it requires tenant, audience, ClientID, Client Secret information etc.Since, I was creating a flow app and not really registering anything with SharePoint, I wasn't sure where to generate and use the Client Secret. Couldn't figure out how to pass the username and password in the right format.....

Satyam_Gupta
Helper I
Helper I

I tried http action for http end point and its work fine without any issue.but in https end point its generate error and set respone as BadRequest.I think http action support only http end point. 

 

Thanks,

satyam

Https works for the Http action card, but it may require that the https endpoint is serving an SSL cert that matches the hostname. As you noticed originally, the authentication body can be filled out manually (this part is identical to the LogicApps APIs), but that's mostly useful for HTTP Basic Auth or AAD-backed authorization for an orgId or application service principal. I don't believe any of those kinds of auth can be used to call Sharepoints APIs, for those you should use the sharepoint service. 

 

If you have other endpoints to call that need more complicated auth, you can create a "custom api" in PowerApps or Flow portals, which supports many different kinds of auth flows for different identity providers.

Thanks alot  Samuel for share this kind of info.

 

 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,532)