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 :
Finance | Project Operations, Human Resources, ...
Unanswered

How to create entity to show header and line data

(0) ShareShare
ReportReport
Posted on by 75

I want create an entity to show header and lines data separately in a following pattern:

{
"context": "",
"value": [
{
"invoice": ",
"truckId": "",
"deliveryDate": "",
"dataAreaId": "",
"company": "",
"invoiceDetails": [
{
"invoice": "",
"truckId": "",
"deliveryDate": "",
"dataAreaId": "",
"companyName": "",
"company": "",
"invoiceAmountMST": "",
"salesUnit": "",
"invoiceDate": "",
"invoiceAmount": "",
"address": "",
"odataetag": "",
"name": "",
"grossWeight": "",
"currencyCode": "",
"customerName": "",
"itemId": "",
"qty": ""
}

]

}

Any solution?

I have the same question (0)
  • Martin Dráb Profile Picture
    239,097 Most Valuable Professional on at

    It's a pity that you gave us so little information about your requirement. People will either ignore your question because it's not clear enough,  or will have to ask extra questions, or will try to guess what you actually want, or need to spend extra effort covering multiple possible scenario. Let me do the last, but just briefly. We can discuss the actual scenario in detail when you tell us what it is.

    F&O supports composite data entities, so you'll get a structure like this, but it's supported in data management only and it doesn't support JSON. You'd have to use XML.

    The fact that you shared JSON suggests that you may actually be interested in OData services, and compisite entities aren't supported there. On the other hand OData has some support for related entities.

  • Ashraf_ahk Profile Picture
    75 on at

    OData services that give above output in JSON.

  • Martin Dráb Profile Picture
    239,097 Most Valuable Professional on at

    OData protocol has $expand query option for this purpose. When your read the page about OData in F&O (the second link in my reply above), you may have noticed that $expand is supported, but just for one level.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 738

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 453 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 286 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans