Send which fields we want returned in the API response

3 댓글

  • Stephen

    Hi, I have the same issue. I was thinking Graph QL might resolve the issue, but it looks like it is only available for searching companies at the moment: https://developer.zendesk.com/api-reference/sales-crm/search/graphql/

    Is there any advice or way to select what we get back? I just want the ticket IDs, but I'm getting back loads of custom fields, as well as everything else when I make the request.

    0
  • Greg Katechis
    Zendesk Developer Advocacy

    Hi Andrew! We do not have offer a direct method to accomplish this with our ticket APIs, we just recommend doing exactly what you mentioned...iterating through the list of tickets and returning the specific data that you need. With the search API, you could find tickets that have a specific custom field's value, but that will still return the entire ticket object and not just the custom fields that you are looking for.

    0
  • Andrew Wells

    That is unfortunate but understandable.

    0

댓글을 남기려면 로그인하세요.

Zendesk 제공