Ricerche recenti


Nessuna ricerca recente

How to search for a string in a custom field in dynamic content

Con risposta


Data ultimo post: 05 giu 2023

I'm trying to create a conditional signature using Liquid Markup with Dynamic content. Ticket field 22871957 is a multi-line custom field. For some reason, even when the string I'm searching for is contained in the field, the output is still "Not Canada Post". I always get that output in my tests. Any ideas what's wrong with the code below?

 

```

{% if ticket.ticket_field_22871957 contains 'Country / State: Canada' %}
Promote Canada Post
{% else %}
Not Canada Post
{% endif %}

```


0

2

2 commenti

image avatar

Zsa Trias

Zendesk Customer Care

Hello Damianne,

Upon checking, ticket placeholder classes like ticket field values are not supported inside the agent signature. This is the reason why the field doesn't work even when used with dynamic content. For reference: Adding an agent signature to ticket email notifications

I would suggest checking this comment from our community forum. One of my colleague's suggestions is to use the Zignatures app from the marketplace. Zignatures allows you to use standard Zendesk placeholders and dynamic content to replace your agent signature.

1


Thanks for the response Zsa Trias

0


Accedi per aggiungere un commento.

Non hai trovato quello che cerchi?

Nuovo post