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:
The inputs from within the customer connector tool:
URL: https://uk-001.azure-apim.net/apim/bc-20test-20p2-20bound-20procs-5f67dc4612ece03a-ff1dc3f9b76a1d05/45b2656c568d474bb05d8ddf3a01cc09/RecordPriceChange(66)/NAV.SetProcessed