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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / HTTP Post Req Power Au...
Power Automate
Unanswered

HTTP Post Req Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by

Hello,

 

i have issue with Post method via Power Automate Desktop.

 

This is the correct Post call in Postman:

 

 

Snímek obrazovky 2024-02-23 v 14.01.16.png

Snímek obrazovky 2024-02-23 v 14.01.32.png

 

This is what i have in Power Automate Desktop:

 

Snímek obrazovky 2024-02-23 v 14.02.18.png

 

Snímek obrazovky 2024-02-23 v 14.02.30.png

 

And receiving this error:

 

Unable to connect to the remote server.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Failed to invoke web service: Unable to connect to the remote server. ---> System.Net.WebException: Unable to connect to the remote server. ---> System.Net.Sockets.SocketException: The connection attempt failed because the connected party did not properly respond after a period of time, or the established connection failed because the connected host did not respond xx.xxxx.xx.xxx:1111 at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.WebActions.FormulateWebRequest(String url, String method, Boolean useAuthentication, String username, String password, String userAgent, String accept, String contentType, Boolean followRedirection, String customHeaders, Boolean clearCookies, String requestBody, Int32 connectionTimeout, Boolean acceptUntrustedCertificates) at Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.InvokeWebServiceBase.<>c__DisplayClass51_0.<Execute>b__0() --- End of inner exception stack trace --- at Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.InvokeWebServiceBase.<>c__DisplayClass51_0.<Execute>b__0() at Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.WebActions.Execute(Nullable1 revocationCheckOption, ILogger1 logger, Action action) at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary2 inputArguments, Dictionary2 outputArguments)

 

I have the same question (1)
  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @janlemon Could you please elaborate what you are trying to achieve here? 

    What power automate desktop web api you are trying to consume from postman?

     

    Thanks,

    Deenu

  • janlemon Profile Picture
    on at

    I am trying to create a new record via API with method to endpoint.com/create/record, it works in Postman, but it doesn't work in Power Automate Desktop. 

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @janlemon 
    Could you please share some screenshots of postman URL/Other  parameters and http URL/Other Parameters after hiding hostname and any confidential info?


    Meanwhile also try to toggle on/off the below highlighted settings.

    Deenuji_0-1708695058603.png

     

    I trust that you have been able to successfully set up the authentication method and also I hope postman and PAD flow both are running in same machine? Pls confirm.

     

    Thanks,

    Deenu

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    What's in the object variable? Is that proper JSON, or is that a custom object converted via the Convert JSON to custom object action? Make sure you use plain JSON in there.

     

    Also try enabling the "Encode request body" toggle.

  • janlemon Profile Picture
    on at

    If i pass empty JSON in Postman, i have proper result:

     

    Snímek obrazovky 2024-02-26 v 9.58.24.png

    If i do it the same with PAD, i am still receiving the same error:

     

    Snímek obrazovky 2024-02-26 v 9.54.32.png

    Snímek obrazovky 2024-02-26 v 9.56.52.png

    Receiving still this error:

     

    ID korelace: 18a39464-c097-4bbb-9caa-eb0d37c4b1e8

    Další informace:
    {
    "StatusCode": null
    }

    Ke vzdálenému serveru se nelze připojit.: Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionException: Nepodařilo se vyvolat webovou službu: Ke vzdálenému serveru se nelze připojit.. ---> System.Net.WebException: Ke vzdálenému serveru se nelze připojit. ---> System.Net.Sockets.SocketException: Pokus o připojení selhal, protože připojená strana v časovém intervalu řádně neodpověděla, nebo vytvořené připojení selhalo, protože neodpověděl připojený hostitel xx.xxx.xx.142:xxxx
    v System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
    v System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)
    --- Konec trasování zásobníku pro vnitřní výjimku ---
    v System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    v System.Net.HttpWebRequest.GetRequestStream()
    v Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.WebActions.FormulateWebRequest(String url, String method, Boolean useAuthentication, String username, String password, String userAgent, String accept, String contentType, Boolean followRedirection, String customHeaders, Boolean clearCookies, String requestBody, Int32 connectionTimeout, Boolean acceptUntrustedCertificates)
    v Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.InvokeWebServiceBase.<>c__DisplayClass51_0.<Execute>b__0()
    --- Konec trasování zásobníku pro vnitřní výjimku ---
    v Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.InvokeWebServiceBase.<>c__DisplayClass51_0.<Execute>b__0()
    v Microsoft.Flow.RPA.Desktop.Modules.Web.Actions.WebActions.Execute(Nullable`1 revocationCheckOption, ILogger`1 logger, Action action)
    v Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Is it possible that the server takes a while to respond? Have you tried increasing the connection timeout?

    Also, are you certain the URL is correct?

     

    Is this a public resource that we could try hitting, too? Does it have any kind of a documentation reference?

     

    Is the "Connection: keep-alive" header mandatory, or is it just default in Postman? If you disable this header in Postman, does it still work? PAD does not support this header.

  • janlemon Profile Picture
    on at

    Hello,

    thanks for your reply.

     

    I am trying to reach internal CRM system, its not a public service, there is a proxy, but Postman and PAD are installed on the same virtual machine.

     

    I've tried to disable Connection:keep-alive in Postman, but it still works properly.

     

     

    Snímek obrazovky 2024-02-26 v 10.38.36.png

  • Deenuji_Loganathan_ Profile Picture
    6,250 Super User 2025 Season 2 on at

    @janlemon 

    I recommend utilizing the Telerik Fiddler Classic tool to monitor both web API calls and identify any missing Parameters.

     

    Upon invoking your web API post method in Postman and PAD, you will observe these backend calls reflected in the tool as follows.

    Deenuji_0-1709004769691.png

     

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard