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)

OData(V4) webservice nested structure

(0) ShareShare
ReportReport
Posted on by 55

Hi,

I have been doing some tests to use ODatav4 webservices for a webshop connection. As the webshop prefers to have the data in json format.

But I think that it is not possible to have the data in a nested structure. Like a header lines structure.

In other words it seems not possible to have a repeating subset with in a dataset.

Maybe I am doing something wrong. If so please let me know what I should do to bea bel to use subsets within a dataset using OData.

Or if not, please confirm that my conclusion is correct.

Kind regards, Henry

*This post is locked for comments

I have the same question (0)
  • hverheij Profile Picture
    55 on at

    What I have tried now is to build up the subset in a global text variable using the json format and link that variable to a page field.

    However when " are used in the field an escape character \ is set in front of the " when the data is retreived by the webservice.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    which nav object did you publish (page, codeunit, ...) ? standard object or custom object ?

    in your case i suggest a page with a subpage (lines), e.g. the sales order page.

    make tests with that page.

  • hverheij Profile Picture
    55 on at

    Hi Jonathon,

    Thank you for your reply.

    I have tried on the Sales Order page (42) and when using soap, you get the order lines as a subnode in the xml structure.

    When using ODataV4 I only get the header information.

    Regards, Henry

  • Ghetz Profile Picture
    3,013 on at

    Indeed! OdataV4 does not bring the SalesLine when calling the SalesHeader Pager Web Service. Whats going on?

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