Custom connector calls from flows to Bound and Unbound Business Central web services show 404 "NotFound" but work in test connector?
I'm just trying out Power Automate as a possible workflow solution to go with our new Business Central app. I've created both bound and unbound web services via ODatav4 in Business Central (On-prem) which run some very basic code just to prove they can be called and run some processing. I've already created standard API's over tables which are working fine to insert / update / get data.
The API calls work fine in the custom connector 'test' area - show 200 and pull back the text string 'Done' which the method returns. I've also tested via an online API tester, again works fine with a 200 response. But anytime I put in a flow, it just fails the flow with a 404 "NotFound" with no other explanation or error.
But in a flow it fails every time with a 404 - which I created a much simplified one, even hardcoded the object ID I passed in a known record in case there's an issue with it picking up a record created in the same flow. I tried adding If-Match headers but I couldn't see in the documentation those are needed for a call like this.
The bound Business Central API code is this simple (for proof of concept)
I've seen at least one other thread where something similar is happening, but no-one could suggest why it fails when called from a flow.
The raw inputs of the api call within the flow:
Solved! Go to Solution.
Rather than use the custom connector - I tried a HTTP action, and manually set the connection string etc in that, and it works fine. So if you do need to make calls to Business Central code units exposed as bound or unbound web services, if you cannot get the custom connector working, try that. It gets a 200 response with a payload showing the returned 'done' string. This obviously wouldn't be what I'd want for methods returning data, but the API calls to BC to get/update/insert all work through the custom connector OK.
Rather than use the custom connector - I tried a HTTP action, and manually set the connection string etc in that, and it works fine. So if you do need to make calls to Business Central code units exposed as bound or unbound web services, if you cannot get the custom connector working, try that. It gets a 200 response with a payload showing the returned 'done' string. This obviously wouldn't be what I'd want for methods returning data, but the API calls to BC to get/update/insert all work through the custom connector OK.