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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Best way to call a Code unit (Which is published as a web service) from Navision Code?

(0) ShareShare
ReportReport
Posted on by 462

Dear All,

I have Published a Code unit as a web service (In company 1).

Now I want to call this CU (From Company two), How Can I do it. I am trying to stay a way from C# code and I want to do this in Navision.

There is nothing like:

CU.RUN    ------> This is my Published Web service CU

Ps: I have Navision 2016 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Saurav.Dhyani Profile Picture
    14,380 Super User 2025 Season 2 on at

    You can use webservices for running codeunits from company A to Company B.

  • Verified answer
    Community Member Profile Picture
    on at

    Check following link - "Consuming NAV web services using pure C/AL"

    vjeko.com/web-services-black-belt-consuming-nav-web-services-using-pure-cal

    Better you use ChangeCompany function to achieve your results between multiple companies.

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