Community
Showing results for 
Search instead for 
Do you mean 
Reply

OData filter on Opportunity status..

Copper Contributor
Posts: 151
Country: Netherlands

OData filter on Opportunity status..

Why can't I filter on it? ?$filter=status eq 0 (for Open) or $filter=status eq 1 (for ClosedLost) does not work.

Greetings,

ACT Certified Consultants
TendenZ
the Netherlands
Highlighted
Employee
Posts: 84
Country: USA

Re: OData filter on Opportunity status..

The correct way to filter would be:

 

api/opportunities?$filter=(status eq 'Open')

api/opportunities?$filter=(status eq '0')

api/opportunities?$filter=(status eq Act.Framework.Opportunities.OpportunityStatus'0')

 

However, for this enum type there is no IEdmModel so it does not work.  I have corrected the API to fix this issue.  Will be in the next release.