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)

How to Create a Purchase Order via Web Service

(0) ShareShare
ReportReport
Posted on by

Hey Guys, i followed the how to create and consume Webservice Guide and everything is working fine so far. Now I'm trying to create a Purchase Order and I want to fill the Buy_from_Vendor_No (Vendor No.) Property via Web Service. If I try to fill the Property with a simple string i get an error.

Does anyone know how i can populate the property? There is no Class exposed in the Webservice that i could use. Can anybody help me out?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at

    What error are you getting  ? and also send me the sample code you are using.

    Check this link for example,

    blogs.msdn.microsoft.com/.../handling-sales-orders-from-page-based-web-services-in-nav-2009sp1-and-rtm

    Instead of Sales Order Page you need to use Purchase Order Page.

  • Verified answer
    Community Member Profile Picture
    on at

    So what we need to do is to create the sales order in 4 steps:

    1. Create the Order Header

    2. Update the Order Header

    3. Create an Order Line

    4. Update an Order Line

    Thats what i needed, its just a string. The only thing i did wrong was trying to set the property in the step of the creation.

    Create then update solves my problem :). Thank you very much.

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)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans