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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Need to receive lines via web service - Codeunit 74

(0) ShareShare
ReportReport
Posted on by

We are trying to receive a purchase order via the web services. This thread looks like what we need:

https://community.dynamics.com/nav/f/microsoft-dynamics-nav-forum/281171/posting-invoice-to-purchase-order---through-web-service-code-unit/803158#803158

We are attempting to follow the steps, however when we use codeunit 74 as suggested, no valid WSDL is returned and therefore we cannot consume the service. Instead we receive this:

8306.Screenshot_5F00_3.png

That brings me to two questions:

  1. Is this the correct methodology for this task? If not, what is?
  2. If this is the correct method, why would we not get a valid WSDL and how can we consume it then?

Thanks!

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    157 on at

    The forum post you have referenced avoids use of direct codeunit usage as it’s not as good as using ODATA. Try this blog post out: https://demiliani.com/2019/06/12/dynamics-365-business-central-using-odata-v4-bound-actions/

    in essence you want to put the onus on a codeunit being used via a page. The forum you referenced will become useful once you have a page you can feed some specific parameters to.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,796 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 965 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans