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

OData Entity with multiple data sources

(0) ShareShare
ReportReport
Posted on by 55

Hi

There is the following requirement for a custom FO data entity:

- it will be called via OData (http GET / POST)

- data entity contains several blocks of records not connected with each other (union), concerning different kinds of data

When I try a prototype of an entity for a GET call 

08641.png

where two datasources (TestHeaderTable, TestHeaderTable02) are placed on the same level and linked to the primary data source TestHeaderBasic

The issue is: number of values in json response is equal to  <number of records in  TestHeaderTable> * <number of records in  TestHeaderTable02>, when all the records are connected with one record in TestHeaderBasic.

Is it possible to get a "union and not a mutiplied presentation" in json response or should the entitty be splitted into two simple entities?

Would the entity in the actual form also work in the case of POST correctly? 

Regards

Pavel 

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    Hi Paul,

    first of all, let's forget OData, POST etc for a while. You can simply query the entity via x++, or query the underlying view via SQL Server Management Studio to test it.

    But I don't think that it's possible to create an entity that would work as you describe, and be usable via OData. You can develop composite entities to return data from many different base entities in a single XML message, but it doesn't work with OData.

  • PaulST Profile Picture
    55 on at

    ok, thank you Nikolaos! I also think, that it's impossible to build such a data entity for OData communication. This is a generall limitation of FO, is tha correct?

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

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans