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 Request fail...
Power Automate
Unanswered

Http Post Request fails in Flow with error 404 but Succeeds in POSTMAN

(0) ShareShare
ReportReport
Posted on by

Hi guys,

 

I'm trying to call an API with the action POST. The API works from POSTMAN, however, once the exact body is an API is called from flow, it fails. We've called several other API from the same vendor but only this specific API fails.

 

Here's the json body for anyone interested. Really hoping for any advice.

 

{
 "PolicyType": "AdvancedWinApp",
 "Name": "Test NUS REST API Advanced Policy",
 "Action": "NormalRun",
 "Activation": {
 "Enabled": true,
 "DeactivateDate": {
 "Year": 2025,
 "Month": 5,
 "Day": 30,
 "Hours": 8,
 "Minutes": 40,
 "Seconds": 0
 }
 },
 "IncludeComputersInSet": [
 {
 "Id": "62c3bb1c-0203-44bc-a6e0-839849df4210"
 }
 ],
 "ExcludeComputersInSet": [],
 "IncludeComputerGroups": [],
 "ExcludeComputerGroups": [],
 "IncludeUsers": [
 {
 "UserName": "NUSSTF\\stavg"
 }
 ],
 "IncludeUserGroups": [],
 "IncludeADComputerGroups": [],
 "ExcludeADComputerGroups": [],
 "Applications": [
 {
 "Type": "EXE",
 "FileName": "Examplify_2.5.4_win.exe",
 "FileNameCompare": "Exactly",
 "Owner": "NUSSTF\\stavg"
 }
 ]
}

 

TSYong_0-1610355690366.png

TSYong_1-1610355821848.pngTSYong_2-1610355846745.png

 

This is the response on POSTMAN which is ok.

TSYong_0-1610356003780.png

 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @Anonymous 

    Are you encoding the Authentication Header value (the content stored in the EPMAuth... variable)? Have a look at this post: SharePoint Administration: Microsoft Flow | HTTP Rest API | Invalid Client Secret error (sharepointmadeeasy.blogspot.com)

    Hope it helps!

    Ferran

  • Community Power Platform Member Profile Picture
    on at

    Hi Ferren,

     

    I am not encoding the Authentication Header value in the EPMAuth.. variable. In fact, I have 2 previous API running before it that works just fine and is done the same way. It's funny because this API is the only one that throws a 404. And testing it in POSTMAN works totally fine.

     

    Screenshot from 2021-01-11 21-34-27.png

  • _Luke_ Profile Picture
    2 on at

    Was just having the same issue and came across this post.  Mine was a very basic POST request that worked in Postman and not in Power Automate when constructed identically.  Here's what I did to get it to work:

     

    Go into Settings for the HTTP connector.

     

    _Luke__1-1679074297796.png

     

    Then turn on "Suppress workflow headers"

     

    _Luke__0-1679074156678.png

     

    Click Done, Save your workflow and test.  Mine worked flawlessly after this change.

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard