web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Adding ranges on multi...
Finance forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Adding ranges on multiple fields in AOT query

Posted on by
Hello,
I have a table Table1 with fields Field1 and Field2 where I need to add complex ranges to a query.
Technically the following select statement needs to be replicated in a query object of the Table1 datasource:
 
select * from Table1
where (Table1.Field1==XXXStatus::Available || (Table1.Field1==XXXStatus::Unavailable && Table1.Field2 != 'A' && Table1.Field2 != 'B' && Table1.Field2 != 'C'))
 
Can anyone help me out how to implement this in a query range please?

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Finance

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans