Person folder filters not working



I have been trying to make request to get Employees or Candidates using the search API endpoints using both GET and POST

Employees:
GET https://api.icims.com/customers/0000/search/people?searchJson={ "filters": [ { "name": "person.folder", "value": ["D32013"], "operator": "=" } ] }

Candidates:
GET https://api.icims.com/customers/0000/search/people?searchJson={ "filters": [ { "name": "person.folder", "value": ["D32007"], "operator": "=" } ] }

I am getting the following:

{
"errors": [
{
"errorMessage": "The following filter is either not valid or hidden: person.folder",
"errorCode": 5
}
]
}

Submitted by iCIMSUNIFIL on December 27, 2018 Permalink

It looks like the filters are correct. The JSON for Folder is Current Employee and Active Candidate are below.

{"filters":[{"name":"person.folder","value":["D32013"],"operator":"="}],"operator":"&"}
{"filters":[{"name":"person.folder","value":["D32007"],"operator":"="}],"operator":"&"}

You are showing that you are using a GET request. The GET request search query must be encoded before passing the query within the request.

Alternatively you can issue a POST request and include the JSON as you are showing it in the body of the request.

Submitted by iCIMSUNIFIL on January 18, 2019 Permalink

I am using the POST request and including the JSON as you have added in your reply, and I am still getting error "The following filter is either not valid or hidden: person.folder".
I am using our Sandbox. Is there a possibility that it might need a specific config?

Submitted by iCIMSUNIFIL on January 21, 2019 Permalink

It is possible one of the filter fields is hidden. You would need to submit a request to the UniFi team to have the sandbox updated. They will only make the update if this Search complies with the standard integration.