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, ...
Answered

How to put range in data entity correctly ?

(1) ShareShare
ReportReport
Posted on by 405
Hello guys,
 
When creating new data entity, I put Range in that Data Entity, but if I checked in SQL, it looks like it didn't applied. I found this old thread -> https://community.dynamics.com/forums/thread/details/?threadid=39c5f2e7-ebac-40c3-becb-10dd7fb1c1cf, Alex VN mentioned that / The Ranges on the Data entity seems to have no effect, not sure if it is a bug or not./
 
So, I'm wondering whether it is true ?
 
Here is the way I create my Data entity:
1. Create new data entity, with primary table is InventModelGroup, then later I'm adding relation to existing data entity : ExoResReleasedProductV2Entity ->
      
 
2. I need to put range in my Data source InventModelGroup, so I found in internet, because the condition is 'OR' condition, I'm using RecId field and put this statement in Property of the RecId range ->
   
   So, based on that, I need the query to return records if in the Model Group is stock item or the modelgroup name is /Standard/.
 
3. However, actually there is one more OR condition which looking at some field in EcoResReleasedProductV2Entity (custom field named M3_Product which is an enum). So what I did is to add this ->
    
 
If I take a look at SQL, I didn't see that M3_Product field as the /where/ filter of its underlying query.
 
So, the question is is true that range in data entity is not effect, only by specify range in its data source. But how to make it OR condition from different table ? If I add range in 2nd datasource, wouldn't it be 'AND' condition ?
Thanks.
 
I have the same question (0)
  • Verified answer
    Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi Teevo,

    I remember I tried that data entity range long time ago, and indeed it wasn't working. So yes it seems only the datasource range is working.

    For complex ranges, you can create a computed column, that returns 0 or if the condition is met

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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 April 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 608

#2
André Arnaud de Calavon Profile Picture

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

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans