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)

Read SubPage data (SalesLines) from Page Web Service.

(0) ShareShare
ReportReport
Posted on by 3,013

Working with NAV 2018, I can correctly execute a Read Operation against the Sales Order Page type SOAP web service. However, the SalesLines are returning as null.

I can correctly create and update Sales Lines with this web service, but I cannot read them. Any ideas on how to read the Sales Lines?

I'm using C# .Net Core, and I've created added the reference to the web service with the Microsoft WCF Web Service Reference Provider

this is my code:

            SalesOrder_PortClient order = new SalesOrder_PortClient();
            
            Read_Result res = new Read_Result();
            res = await order.ReadAsync("104018");
            //Sales_Order_Line sl =  res.SalesOrder.SalesLines[1]; //This line returns error, because SalesLines is null. I've checked that the order has lines.

            return res;

*This post is locked for comments

I have the same question (0)
  • Hannes Holst Profile Picture
    5,767 on at

    When you type in the URL of the SOAP-service into a webbrowser (or Postman).

    Do you get a response for the Sales Lines then?

  • Ghetz Profile Picture
    3,013 on at

    Yes, postman returns SalesLines correctly

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at
  • dickson kimeu Profile Picture
    249 on at

    Am also having same problem here, who can help ?

    This issue happens when I'm using C# .Net Core, and I've created added the reference to the web service with the Microsoft WCF Web Service Reference Provider

    The provided link above refers to .NET Framework, whereas this is a .NET Core Issue only.

  • dickson kimeu Profile Picture
    249 on at

    Did you get a solution ?

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)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans