Declare the Smart Collection Zendesk Users
Zendesk API allows to access different data: First, we need to declare the smart collection in your project based on the API documentation. As an example, here the smart collection definition for Users:Some fields are available for filtering or sorting using the Zendesk API. To allow this on the Forest UI, simply add the keywords
isFilterable and isSortable in your field definition.Implement the Smart Collection route
In the fileroutes/zendesk-users.js, we’ve created a new route to implement the API behind the Smart Collection.
The logic here is to list all the users of your Zendesk account.
- Learn more about how to authenticate, filter and sort with the Zendesk API.
- Find more information about
getUsersvariable definition in the Github repository.