Hey,
we're trying to integrate NAV(2016) with an external system, through Odata. The external system will call functions from NAV and gets a return back.
The problem is that we cannot expose a function with Odata. Codeunits does not work with OData, is there any workarounds?
i tried with pages, but the function is not visible.
the system only accepts JSON. Therefor, SOAP cannot be used.
Thanks Gusti,
the function will make some calculation and return a value. will it be possible to return a value?
in NAV 2016 , you can use below work around .
Create page with temporary table , call post method to insert the data.
At the OnInsertTrigger add code to call function based on passed data.
juhl.blog/.../call-function-using-odata
FYI for NAV 2018 , there is already standard function for this using Bound Action.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,524 Super User 2024 Season 2
Martin Dráb 228,469 Most Valuable Professional
nmaenpaa 101,148