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, ...
Suggested Answer

Query ranges/filter

(0) ShareShare
ReportReport
Posted on by 1,552
Hi,

I have a query with two datasources (table1 and table2) inner joined
and there is a range on the query for table2 based on status

As you can see from the picture below, the Status field range appears based on query range. And the recordId range field appears because i'm setting range from caller in the controller class.

My question is
1. why table1 is returning field1 and field2 in the filter? from where did it come from and how can i remove them?
2. can I hide recordId range from table2?

 
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,721 Super User 2025 Season 2 on at
    Query ranges/filter
    Hi Junior AX,
     
    There are options to lock or hide a range. To have the unwanted fields removed from the form, you can set the property Status for the ranges to 'hidden'. You mentioned you didn't add fields as ranges for Table1. Are these fields the primary key fields? You can add the same field to your query and also hide them with the property.
  • Martin Dráb Profile Picture
    237,693 Most Valuable Professional on at
    Query ranges/filter
    Unfortunately, you forgot to explain your scenario. I'll assume you're talking about about query selection in SysOperation framework (or maybe RunBase). Please confirm.
     
    The framework indeed automatically add some fields to the dialog. Unfortunately, you hid all information from the screenshot, so I can only guess, but I assume that Field1 and Field2 of Table1 are there because they form the primary key of the table. Let's talk what to do with it (if at all) after you confirm which framework you're using (or what else you're doing) and whether the fields are from PK or not.
  • Suggested answer
    Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at
    Query ranges/filter
    If these 2 fields are there in primary key of that table, then these may appear. You can via code or directly in query, make these ranges to hidden. Same will work for record- ID too.

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 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans