Skip to main content

Notifications

Microsoft Dynamics NAV forum
Suggested answer

Odata webservice problem(NAV 2016)

Posted on by 255

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. 

  • lynix_x Profile Picture
    lynix_x 255 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?

  • Suggested answer
    I Gusti Made Ari Profile Picture
    I Gusti Made Ari 3,590 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.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,524 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,469 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans