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

OData Request using contains wildcard * with eq and ne

(1) ShareShare
ReportReport
Posted on by
Hi All,
 
Is there a limitation with the OData implementation in Finance and Operations?
 
When I am running the below ODATA api request I am getting undesired results with the wildcard in the ActivityNumber condition and the condition is being ignored. It works fine if I do not include the activity number condition. Please note I had extended the Activities entity to include a projid, this all works perfectly.
 
This returns results where ActivityNumber contains 'AN101' which is not expected as the clause is ne with a wildcard.
 
....operations.dynamics.com/data/Activities?$format=json&$filter=ProjId eq '1011*' and ActivityNumber ne 'AN101*'&cross-company=true
 
 
 
It DOES work if I do not use a wildcard in the ActivityNumber comparisons, such as /ActivityNumber ne 'AN1010001'/
 
....operations.dynamics.com/data/Activities?$format=json&$filter=ProjId eq '1011*' and ActivityNumber ne 'AN1010001'&cross-company=true
 
 
It DOES work if I only include the ActivityNumber comparison with a wildcard such :
 
....operations.dynamics.com/data/Activities?$format=json&$filter=ActivityNumber ne 'AN101*'&cross-company=true
 
 
I have the same question (0)

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