Skip to main content

Notifications

Microsoft Dynamics NAV (Archived)

Odata webservice problem(NAV 2016)

(0) ShareShare
ReportReport
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. 

*This post is locked for comments

  • 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,594 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans