web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    236,471 Most Valuable Professional on at
    RE: How to create entity to show header and line data

    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
    RE: How to create entity to show header and line data

    OData services that give above output in JSON.

  • Martin Dráb Profile Picture
    236,471 Most Valuable Professional on at
    RE: How to create entity to show header and line data

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 1,964

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 823 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 564 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans