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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Issue with Web Invoke ...
Power Automate
Unanswered

Issue with Web Invoke POST request

(0) ShareShare
ReportReport
Posted on by 11

Hey all,

 

I've searched around for a quite a bit on this issue but have come up empty. If anyone can offer some advice it would be greatly appreciated.

 

So essentially, I have a process that uses a Invoke Web Services to POST command to attempt to retrieve the "Illustration" of a customer's documents. The reply the to the API in is in BASE64 and then it has to be converted form that to the PDF file that is desired.

 

For some reason though, I CANNOT get this particular POST function to work in PAD. I've got all the advanced properties set correctly as far as I can tell, disabled encoding the request body, but regardless of what I have tried so far it just ends up with an error response

 

I have this same POST call set up the same exact was in another automating platform, Automation Anywhere, and it works fine. I can make it work fine in Postman too. I can't figure out what the missing link is that is preventing it from working in PAD. I have other POST requests to different services that work fine.

 

Does anyone have any advice to offer? Thanks.

 

Invoke Web Service input and error response attached.

 

mike689_1-1667219194998.png


(Top is the header response, which looks ok. But not sure why the body is continually giving issues.)

mike689_2-1667219248842.png

 

 

I have the same question (0)
  • yoko2020 Profile Picture
    495 on at

    Click advanced setting.

    Uncheck this option if it is checked.

    2022-11-01_031414.png

     

  • mike689 Profile Picture
    11 on at

    Thanks for the reply, but unfortunately I do already have that option disabled

  • yoko2020 Profile Picture
    495 on at

    If you are already sure the api endpoint accept json data, not xml, can you paste the json string here, maybe json string is in incorrect format.

  • mike689 Profile Picture
    11 on at

    Sorry for the delay, I'll work on getting that to you as soon as I can but I'm not sure JSON is the culprit, unless there is some very odd specific minor difference when using Invoke Web Service.

     

    I did manage to make a workaround using Powershell to make the API call instead, but aside from the difference in formatting that Powershell requires vs. Power Automate Desktop, I truly can't find any reason it shouldn't work in PAD.

     

    JSON Body example:

    {"policyNumber":"CP4000057J","companyCode":"LM1","pendingIndicator":"Y","callType":"1","error":"","premium":{},"agreementId":89004026}

     

    Here is all of the input used that would never generate a proper result for me. Most often the API would come back with an error that indicated it had an issue with the policy number that was passed, either not reading it correctly or a format issue or something but it is set right in the variable and even when typing out everything manually (not using variables) it still gave this error.

     

    mike689_1-1667686249492.png

    mike689_3-1667686625820.png

     

     

     

    I know the POST call works, as using the exact same URL, ApiKey header, and body as used above, it works absolutely find in Postman and gives a proper response.

     

    I was able to get it working with a rigged together fix, but I really would like to get the built-in Invoke Web Service function to work for it as I really don't understand what issue it is having.

     

    Powershell's Invoke-RestMethod but it's just some extra steps of having to create a local powershell script to do the API call, get the results, write that to a file, convert from Base64, etc, etc, and go from there. The format of how Invoke-RestMethod wants the data input is slightly different, but otherwise the variables and data within it are passed through the same way:

     

    mike689_4-1667686918638.png

     

    Did I just find a random needle in the haystack bug or something? I would be inclined to think the API itself is the issue, but ONLY attempting the Post from the PAD Invoke Web Service activity results in failure. My best guess is that the Invoke Web Service PAD utility is somehow slightly manipulating the boyd contents as they are being sent and that is what is causing it to fault.

     

    I'm all ears if anyone has any ideas to try with the built-in PAD method... or even if you know of a more efficient method that is not that way at this point. This powershell way works and it will do if it's the only option, but I'd just really like to use the built in feature if I can...

     

    Thanks for any and all assistance!

  • mike689 Profile Picture
    11 on at

    Crickets on this one eh?

     

    Not surprised. It's a arther obscure problem.

     

    The powershell solution, albeit not the most elegent one, serves my purposed for now though so I supposed it will have to do.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 177 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard