유동 마크업은 댓글과 이메일 알림을 사용자 지정하기 위해 비즈니스 규칙에서 자주 사용됩니다. 유동 마크업 Case 문을 사용하면 티켓의 일부 속성에 따라 동적으로 사용할 여러 메시지를 정의할 수 있습니다.
이 문서에서는 여러 언어로 응답을 지원하는 예를 사용합니다. 많은 회사와 조직이 영어 이외의 언어를 사용하는 최종 사용자를 지원하고 있습니다. 다음과 같은 몇 가지 방법으로 이를 관리할 수 있습니다. 메시지가 복잡하거나 많은 언어가 있는 경우에는 동적 콘텐츠를 사용하는 것이 좋습니다. 몇 개의 언어로 단순한 메시지를 사용하는 경우에는 유동 마크업이 적합합니다.
유동 마크업 Case 문을 사용하여 다국어 지원하기
계정에서 다국어를 지원하는 경우에는 사용자가 프로필에서 선호하는 언어를 지정할 수 있습니다. 그런 다음 자동화, 매크로 또는 트리거에 대해 정의하는 메시지 본문 내의 일련의 조건문에서 사용자가 선호하는 언어를 참조할 수 있습니다.
다음 예에서는 트리거의 알림 기준: 사용자 이메일 작업에 대한 이메일 본문을 보여줍니다. 이 경우에는 계정의 기본 언어가 영어이므로 유동 마크업 서식 내에서 레이블할 필요가 없었습니다.
{% case ticket.requester.language %}
{% when 'Italiano' %}
Ciao,
La tua richiesta (#{{ticket.id}}) è stata ricevuta, è stato esaminato dal nostro staff di assistenza.
Per esaminare lo stato della richiesta e aggiungere ulteriori commenti, segui il link qui sotto:
http://{{ticket.url}}
{% when 'Danish' %}
Hej,
Din anmodning (# {{ticket.id}}) er blevet modtaget og bliver gennemgået af vores supportmedarbejdere.
At gennemgå status for anmodningen og tilføje yderligere kommentarer, skal du følge nedenstående link:
http:// {{ticket.url}}
{% else %}
Hello,
Your request (#{{ticket.id}}) has been received, and is being reviewed by our support staff.
To review the status of the request and add additional comments, follow the link below:
http://{{ticket.url}}
{% endcase %}
유동 마크업 Case 문을 사용하여 다른 동적 응답 만들기
비슷한 구조를 사용하여 선호하는 언어가 아닌 상황에서 동적 응답을 만들 수 있습니다. 예를 들어 사용자의 조직에 따라 응답하려는 경우 비슷한 Case 구조를 사용할 수 있습니다. 그러한 시나리오에서는 Case를 {% case ticket.organization.name %}
으로 정의하고 각 조직에 대한 응답 앞에 {% when 'OrganizationName'
%}
이 붙습니다.
댓글 13개
Carmelo Rigatuso
4631498187290
I would try using the ticket.ticket_field_123 format in the case, and use the tags associated with the value you want, and then if you need to display the value, use ticket.ticket_field_option_title. So something like:
Note that I'm not 100% sure on the syntax if you're evaluating tags instead of text. you may not need the quotes.
0
Amar Taggar
Hey Team, I am trying to use this “Using a Liquid markup case statement to dynamically change the text based on a dropdown field's value”
It works with a regular drop down just fine, but our use-case needs it to work with a cascaded dropdown field. Can someone help me on how to use it?
It works with regular drop down like “XYZ”
It doesn't work with “XYZ::ABC”, I even tried with just "ABC". Any ideas on how to do this?
0
Carmelo Rigatuso
5702658571290 A bit late, but if you haven't figured it out yet, it's ticket.ticket_field_option_title_12345 not ticket.requester_field_option_title
1
Cameron Eng
Has anyone been able to reference custom user dropdown fields with liquid markup? I'm trying the syntax “{% case ticket.requester_field_option_title_FIELDID %}” but no luck so far
0
Jacob the Moderator
Hey 4821761052186
I'm not sure this is documented, but from my experience, it seems the value you're evaluating is the one shown to end users. So if you have a form called “Consumer L1” for your agents, and “Consumer requests” for your end users, you would need to use the latter for it to work.
You can check this in Admin Center on the individual forms.
0
Dylan Tragjasi
Does anyone know if the ticket form object is accessible when using liquid markup? I'm trying to create a macro with different content depending on the current form selected on the ticket. I've tried many variations of the following but can't seem to get it to work:
Using the ticket.ticket_form placeholder doesn't seem to work either. Any advice? Thank you!
0
Yvonne P.
Detailed Question on this: having a clickable logo in our agent signature in the brand setting (that works already) but i need it to work dynamically, so eg. when customer language is german = logo should lead to www.brand.de / when customer language is english = logo should go to www.brand.com
I assume this should be possible with liquid markup, BUT I am new to this - so hoping someone here can help.
In brand setting "signature" right after the logo - can I just add something like this:
{% when 'Italiano' %}(www.brand.it)
{% when 'German' %}(www.brand.de)
{% when 'English' %}(www.brand.com)
Appreciate anyone trying to help out on this :)
Kind regards,
Yvonne
1
Bry Fitzgerald
2
Khajik Khajadourian
What is the difference between using dynamic content for multiple languages and liquid markup?
1
Giuseppe
Hi Rom Hirsh
I'll be creating a ticket for your query and send an email to you so we can investigate further.
Thanks!
0
댓글을 남기려면 로그인하세요.