I am trying to filter results with the query option. I tried many combinations but, I could not handle it. Get request gives an error. The error is "The types 'IfsApp.EmployeesHandling.EmploymentTypeState' and 'Edm.String' are not compatible.". How can I filter result?
It is working. What is the best practice to find ‘IfsApp.EmployeesHandling.EmploymentTypeState’ part of filtering?
Thank you @ChristianJ,
It is working. What is the best practice to find ‘IfsApp.EmployeesHandling.EmploymentTypeState’ part of filtering?
Easiest way is to apply the filter in the screen itself and then pick it up from the URL or Chrome Dev Tools. You can also look at the API from the API explorer, or use /main/ifsapplications/projection/v1/EmployeesHandling.svc/$openapi?V3
Thank you @anmise. I think I could not tell. Usually, we are using in the filter expression (coloumn eq ‘value’). When it comes to objstate it is different. You have to use the expression as (Objstate eq IfsApp.handling state’state value’).
To find this expression. I am using the first expression. Then, I am getting the error. Then I extract the ‘IfsApp.handling’ part to use the filter.
Hi guys,
I am having trouble to pass a state as parameter to my API, even when I use like you told. Follow the error message: