Hello,
I was wondering if someone can help me configuring an HTTP action in Microsoft Flows.
I have built a flow in Microsoft Flows where every time a specific person approves a request from someone in company then I want to create a new entry (record) in NetSuite for a specific record type.
If I do this using Excel is working fine. (There is a script XMLEndopoint in Netsuite where enables us to post data in XML Format)).
When I try to do this using Flows I get 405 method not allowed.
This is the whole HTTP action.
I quite new with the Flows.
Thank you in advance.
Solved! Go to Solution.
I am posting this solution here for future reference.
Everything was correct except one thing which was missing.
User-Agent : Mozilla/5.0
And the flow worked.
Thanks.
Hi @IS,
Could you please show a bit more about the error message?
The 405 error told that the method specified in the Request-Line is not allowed for the resource identified by the Request-URI, in other words, the HTTP verb is not allowed for the specific URI that an HTTP client has requested.
Please consider take a try to change the HTTP method into PUT and check if the issue is solved on your side. Besides, please check if you have filled proper url within Uri field of HTTP action.
More details about troubleshooting HTTP 405 errors, please check the following article:
Troubleshooting HTTP 405 errors
Best regarfds,
Kris
Hello @v-xida-msft
Thank you for your response.
I tried PUT method but still it is the same error. I also try to use mozilla's add-on RestClient with the same inputs and it worked. The only thing I noticed was the HTTP connector in MS Flow asking for URI and the Mozilla's is asking for URL. At this point I feel a bit confused regarding URIs and URLs.
Thank you in advance.
My inputs is:
METHOD: POST
Content-Type: application/xml
Body: <?xml version="1.0" encoding="UTF-8"?>
<request>
<key>xxxxxxxxxx</key>
<operation type="create">
<record type="xxxxxxxxxxxxxxxxx">
<name>some_value</name>
<some_filed>1</some_field>
<some_field>5</some_field>
</record>
</operation>
</request>
This is working when I am using excel vba code or RESTClient.
The error I am getting is:
I am posting this solution here for future reference.
Everything was correct except one thing which was missing.
User-Agent : Mozilla/5.0
And the flow worked.
Thanks.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
If you are a small business ISV/Reseller, share your thoughts with our research team.
User | Count |
---|---|
26 | |
25 | |
23 | |
22 | |
14 |
User | Count |
---|---|
45 | |
33 | |
33 | |
32 | |
30 |