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

Announcements

No record found.

News and Announcements icon
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
 
 

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

#2
CU10121822-0 Profile Picture

CU10121822-0 358

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans