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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Advanced filtering query syntax

(0) ShareShare
ReportReport
Posted on by 560
Hi,

can i do the following range in data entity (InventTransferOrderHeaderEntity) ?

((TransferOrderStatus = /Shipped/) && ((ReceivingAddressLocationId= 1234) || (ShippingAddressLocationId = 1234))

 
I have the same question (0)
  • DELDYN Profile Picture
    560 on at
    Any idea?
  • Suggested answer
    Waed Ayyad Profile Picture
    9,212 Super User 2026 Season 2 on at
    Hi Deldyn,
     
    1- Replace the TransferOrderStatus  with Enum integer that is related to "Shipped" status.
    2- ReceivingAddressLocationId  is it integer value? or String?
     
    Thanks,
    Waed Ayyad
    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
     
  • Verified answer
    Igor Karmalita Profile Picture
    16 on at
    Hello Deldyn,
    1. Use "Shipped" instead /Shipped/
    2. Add aone mode closing bracket ")" in the end 
     
    so if you are correct with data types in LocationId's range should looks like this:
    ((TransferOrderStatus = "Shipped") && ((ReceivingAddressLocationId = 1234) || (ShippingAddressLocationId = 1234)))
     
    But I think ReceivingAddressLocationId  and ShippingAddressLocationId  it's string, so rather:
    ((TransferOrderStatus = "Shipped") && ((ReceivingAddressLocationId = "1234") || (ShippingAddressLocationId = "1234")))
  • DELDYN Profile Picture
    560 on at
    Hi Igor,

    i've put quotations on shipped, but the question format replaces "" with /

    i've added the extra bracket at the end thank you and the error stopped appearing.

    ((TransferOrderStatus = "Shipped") && ((ReceivingAddressLocationId= "1234") || (ShippingAddressLocationId = "1234")))
     
     
    However, the range is not working as expected.

    i created a new transfer, i've put the ReceivingAddressLocationId as 1234 and the status is shipped.
    However, when i export the entity i get nothing

    i also tried to replaced shipped with it's integer value but same result (it's not good to put enum integers anyway)

    So is to doable via the UI in the first place?
  • Waed Ayyad Profile Picture
    9,212 Super User 2026 Season 2 on at
    Hi Deldyn,
     
    Did you save view after you changed the query? Can you share the form? 
     
     
    Thanks,
    Waed Ayyad
     
  • Igor Karmalita Profile Picture
    16 on at
    Hello Deldyn,
    I've tried to solve "Extended range failure", i'm not sure about tables fields and ranges you have used here, if Query works now but you see nothing or result is different from you expects, then problem in something else.
  • Martin Dráb Profile Picture
    240,280 Most Valuable Professional on at
    The problem about no data returned shouldn't be discussed here anymore. DELDYN created a new thread for it and forgot to mention it here.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 265 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 261 Super User 2026 Season 2

#3
Subra Profile Picture

Subra 229 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans