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

Odata entity date range to filter records (datasource join) issue

(0) ShareShare
ReportReport
Posted on by 252

Hi All,

We have a requirement to expose an odata entity which will expose the Purchase Orders with Invoiced and Received status. And if the purchase order is in Invoiced status, it should expose the records that are invoiced after -10 days from the current date.

Created a data entity with PurchTable as a datasource and added range for the PurchStatus field with (Invoiced OR Received) values.

Added VendInvoiceJour as child datasource and added range for the InvoiceDate field with (GreaterThanDate(-10)) value.

The issue is when we use the join type as 'Inner Join', it exposes the Invoiced purchase orders with proper date range but it ignores the 'Received' purchase orders. And if the join type is 'Outer join', it ignores the date range and exposes all the invoiced and received purchase orders.

Could anyone share info on how this can be handled.

Thanks!

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

    Why do you want to create a new entity instead of using the existing one and merely filtering the records? It seems to be that you'd spend time developing something (and keep maintaining it for the whole lifetime of the system) that you don't really need.

    The status is already there; you would just have to add the invoice date.

    Noe that your current design ignores the fact that there may be more invoices for a single purchase order.

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 733

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans