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

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Best way to call a Code unit (Which is published as a web service) from Navision Code?

    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.

  • Verified answer
    Saurav.Dhyani Profile Picture
    14,314 Super User 2025 Season 1 on at
    RE: Best way to call a Code unit (Which is published as a web service) from Navision Code?

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

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans