Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Post PO to create Invoice - webservice

Posted on by 25

Hello,

Anyone has any examples or ideas on posting a PO through webservice? Scenario is - we have the PO created in NAV (2017) and the receipt is applied against the PO and PO is released. At this stage, PO is sent to a 3rd party application to which all suppliers have access to. They will convert this PO to vendor invoices and interface between 3rd party and NAV will capture this event. During this stage, we will have to post the PO in NAV to create a purchase invoice. This process has to be automatic (once a day) and we will have to update vendor invoice number etc in the PO before posting. 

I don't have access to Developer Env, so I don't think I will be able to use CodeUnit as webservices (tried exposing codeunits 90 and 91 as webservice but the WSDL doesn't have any methods to post. I see only setmethods to update posting date, preview mode etc but no method to do the posting). 

Tried publishing page 51 (Purchase Invoice) as webservice but this one doesn't have an option to post the original PO. I am able to create new purchase invoice but unable to post the original PO. 

So looking for expert opinions. Thanks in advance.

Thanks

Shree

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: Post PO to create Invoice - webservice

    You need to implement something like this, you do need access to Dev Environment for this

    dynamicsuser.net/.../nav-2009-web-services-extending-a-page-web-service

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

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans