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

How to put range in data entity correctly ?

(1) ShareShare
ReportReport
Posted on by 365
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,034 Super User 2025 Season 2 on at
    How to put range in data entity correctly ?
    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

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 2,100

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 633 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans