Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Need help understanding built in code units and licensing requirements.

(0) ShareShare
ReportReport
Posted on by

I want to interface a purchasing application via web services so my intent is not to modify anything in NAV but to enable web services for built in pages and codeunits to do the following;

1. Create a Purchase Order

2. Modify a Purchase Order to enter Vendor Invoice and receipt quantity

3. Post a Purchase Order Receipt

4. Create a Purchase Invoice.

I'm currently an ISV running the Demo license for testing. From what I can tell, I can do option's 1,2 and 4 by simply using the Page web service for the Purchase Order. Option 3 seems to be available as a codeunit however I can't see how I can call it to actually post unless I create a code unit and tie it to the Purchase Order page with code to call the Posting Routine, which requires I modify a page and add a code unit. Both requiring a Developer license. I was originally thinking that if the pages and codeunits  were available by default in the installation that I could just set them up as web services and call them from my purchase application. Can anyone tell me if I'm mistaken on this and if there is a way to use the codeunits from web services to do what I want to do?

Jim

*This post is locked for comments

  • Verified answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: Need help understanding built in code units and licensing requirements.

    You can try to publish a Codeunit 90 (Purch.-Post) as a webservice and call it further. I think you would not need developer's license for that. However if you would need an option when you would create a posting function on your page to be called from you original webservice, for that developer's license is needed.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,432 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans