web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Odata webservice problem(NAV 2016)

(0) ShareShare
ReportReport
Posted on by 259

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. 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,600 on at
    RE: Odata webservice problem(NAV 2016)

    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.

  • lynix_x Profile Picture
    259 on at
    RE: Odata webservice problem(NAV 2016)

    Thanks Gusti,

    the function will make some calculation and return a value. will it be possible to return a value?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans