Get custom field options or ticket fields translations

2 Comentarios

  • Ahmed Zaid
    User Group Leader Community Moderator
    Zendesk Luminary

    Hi Maxime Lagache,

    To show a single item from /api/v2/dynamic_content/items, you need its integer id. Obviously, you do not get that from the custom field endpoint. You will only get the placeholder.

    However, you can utilise the /api/v2/dynamic_content/items/show_many endpoint and query using identifiers instead of the item's integer id. The documentation is a bit vague about what identifiers are, but when I tested, it seems to be the unique part of the placeholder: {{dc.<identifier>}}

    You will need to parse the raw_name for each option and use regex match to extract the identifier(s).


    Hope that helps.

  • Christopher Kennedy
    Zendesk Developer Advocacy
    Hi Maxime,
    The placeholders you referenced (some_value , in_english, etc) are the dynamic content item names.  The translation-specific content tied to those items are dynamic content item variants.  The variants can be retrieved via API.  We have a full breakdown of this data structure in our Dynamic Content API docs.

Iniciar sesión para dejar un comentario.

Tecnología de Zendesk