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 / HTTP OPTIONS call to P...
Power Automate
Answered

HTTP OPTIONS call to Power Automate

(0) ShareShare
ReportReport
Posted on by 827

Hello all,

 

I've used the 'When a HTTP request is received' trigger fairly extensively, but I'm working with a new scenario and I've been having trouble getting it to work.

 

I want to use Automate to subscribe to a Webhook provided by some third-party software that my company uses.  In order to subscribe to their webhook, there's a handshake process that I need to go through.  As part of the handshake, an OPTIONS HTTP call will be made to my Flow, and the Flow will need to return an appropriate response.

 

I'm trying to test this out before I actually subscribe to the Webhook, but I'm having trouble calling the Flow using the OPTIONS method.  I've tried a couple of different ways, but I seem to always receive an error like this:

"The HTTP method for this request is not valid: expected 'POST' and actual 'OPTIONS'."

 

Does the HTTP trigger accept OPTIONS calls?  Or is the problem something to do with the way that I'm making the call?

Categories:
  • Jronash Profile Picture
    827 on at

    I believe I've confirmed that Automate responds to OPTIONS calls at lower level, without triggering the flow itself.

     

    When I was trying to send the HTTP OPTIONS call before, I had some syntax errors.  Once I fixed them, I was successfully getting a response back from my flow, but when I went to the run history, there was nothing there.  The response was being sent without actually triggering the flow.  So if you need to send a custom response to an HTTP OPTIONS call, Automate isn't going to work for you.

  • Verified answer
    Jronash Profile Picture
    827 on at

    So I found a solution to this after all, and it's not even that difficult.

     

    On the 'When a HTTP request is received' trigger, go down to advanced options and go to the Method field.  OPTIONS is not included in the list, but you can enter a custom value and write OPTIONS in yourself.  Then this flow will be able to catch and respond to OPTIONS calls.

     

    In the case of subscribing to a webhook, you probably only need to receive an OPTIONS call for the initial handshake setup.  After that, you will be receiving POST requests.  So in that case, you would set up the flow with the OPTIONS trigger and build whatever flow you needed so that you could respond appropriately to the call.  Once you've responded to the call and your webhook subscription is active, go back to the  trigger and change the method to POST.  Then re-build your flow so that it responds to the webhook calls.

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
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard