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 / Invoke Web Service POS...
Power Automate
Answered

Invoke Web Service POST access denied

(0) ShareShare
ReportReport
Posted on by 19

 Hi I am trying to make a POST request using the "Invoke Web Service" action. I have formatted as below (can't share URL but I have tested using the same URL in postman and it is working)

I have removed the information within the request body that I cannot share but again, this has all been tested in postman so the details are 100% correct

ryaneng_2-1701087816030.png

 

 

I get a 401 code back with the message "access denied". I do have the correct details to access this as this is working in postman and returns an access token. The authorization used in postman is "No Auth".

 

I have tested other GET requests that send to the same web application with PAD and they are working fine, these use a Bearer authentication with the above access token.

 

I think my issue may be in not formatting the request body correctly, or that I have not included some custom header that I require. 

 

My Advanced settings look like this 

ryaneng_1-1701087639721.png

 

Any help is appreciated

  • Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @ryaneng 

     

    As we have very limited information to see the issue, I suggest if you are using any variables to pass the values, It's better you check all hard coded and try that if the same error you are getting

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Regards,

    Srini

  • ryaneng Profile Picture
    19 on at

    Yes unfortunately I am unable to share any of the details of my request but I am using all hard coded values. 

     

    If it helps it is the ServiceNow API that I am connecting to 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you tried enabling the "Encode request body" toggle?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • ryaneng Profile Picture
    19 on at

    Hi thanks for your reply. 

     

    Yes I've tried with this turned on and off and still the same issue

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, are you actually passing in the values? Access denied indicates that authentication fails, but the request is actually okay. The body you provided in the screenshot does not contain the values. Are they actually empty, or did you just remove them as sensitive info?

    Are you using variables in the body, or are you sending hardcoded values?

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • Verified answer
    ryaneng Profile Picture
    19 on at

    I actually managed to find the solution. My client_secret contained special characters. Postman and UiPath can handle these special characters but power automate cannot. I had to encode these special characters

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 244

#3
Henil Profile Picture

Henil 102

Last 30 days Overall leaderboard