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?
Has nobody tried this? Or did I ask a really stupid question?
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.....
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.
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.