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

Advanced filtering query syntax

(0) ShareShare
ReportReport
Posted on by 458
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
    458 on at
    Advanced filtering query syntax
    Any idea?
  • Suggested answer
    Waed Ayyad Profile Picture
    9,023 Super User 2025 Season 2 on at
    Advanced filtering query syntax
    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
    Advanced filtering query syntax
    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
    458 on at
    Advanced filtering query syntax
    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,023 Super User 2025 Season 2 on at
    Advanced filtering query syntax
    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
    Advanced filtering query syntax
    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
    237,679 Most Valuable Professional on at
    Advanced filtering query syntax
    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

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