Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Need to receive lines via web service - Codeunit 74

Posted on by Microsoft Employee

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!

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: Need to receive lines via web service - Codeunit 74

    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

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans