Rest Api Filter returns all the results
search cancel

Rest Api Filter returns all the results

book

Article ID: 215443

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

We are trying to integrate the Clarity with 3rd party app using Rest API. We are using postman client and as per the instructions, we have used the following command in Get and filter is not working. Currently it is retrieving all the data (everything) and does not use the entire filter. Here is our request:

http://<Servername:port>/ppm/rest/v1/projects?fields=name,code&filter= (isActive = true & code = '00000005')

Environment

Release : Any

Component : CA PPM XML OPEN GATEWAY (XOG)

Resolution

  • You have to do is to use 'and' instead of & in the filter.
  • Also use the parentheses to enclose each condition. 

Example:

http://<Servername:port>/ppm/rest/v1/projects?fields=name,code&filter= ((isActive = true) and ( code = '00000005' ))