I was able to build a flow in in power automate that updates and posts purchase order receipts.
I am now trying to do the same from a C# app. I have successfully updated the PO and inserted the purch__post_onruns record. I cannot figure out what the URL should be and what HTTP verb to use to fire the “OnRun” Procedure.
Question is closed for new answers.
Kevin Bjork Selected answer as best November 8, 2024
https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action
NAV.OnRun is the right now …
Kevin Bjork Selected answer as best November 8, 2024
Hi Kevin,
This is outside our normal area of support, but there are many blogs about this, here’s one example: https://businesscentralgeek.com/what-are-bound-actions-in-business-central-apis
Hope that helps.
Kevin Bjork Posted new comment November 7, 2024
I used the Simple Object Designer to expose the “Purch.-Post” business logic. I just want to know what the URL for executing it is. The URL provided on the card allows me to insert the record but how do I run it.
I saw the article you mentioned. Here is the URL they provide
https://api.businesscentral.dynamics.com/v2.0//api////companies()/()/Microsoft.NAV.
When I look at the source generated by SOD (API_CU_90OnRunSOD.Page.al), it has the procedure name “OnRun”
I have tried a variety of things in the field. Neither of these work.
{url}/Microsoft.NAV.OnRun
or just
{url}/OnRun
I get this error:
“No HTTP resource was found that matches the request URI”
Is the “Purch.-Post” business logic only available in power automate?