In questo tutorial imparerai come taggare un utente usando un trigger. Troverai anche se un tag è stato aggiunto da un trigger.
Il workflow include i passaggi seguenti.
- Passaggio 1: Crea un campo utente personalizzato
- Passaggio 2: Crea un trigger
- Passaggio 3: Verifica se un tag utente è stato aggiunto da un trigger
Usando un’azione trigger, non puoi aggiungere direttamente tag utente al profilo di un utente. Come soluzione alternativa, crea un workflow personalizzato usando questa azione: Richiedente | Campoutente personalizzato , che aggiungerà un tag.
Passaggio 1: Crea un campo utente personalizzato
- Crea un campo utente personalizzato,seleziona il tipo di campo a discesa
- Aggiungi i valori dei campi utente con tag. Questo esempio aggiunge il
vip
tag utente - Fai clic su Salva
Fase 2: Crea un trigger
- Crea un trigger
- Aggiungi le condizioni del ticket per il tag utente
- In Azioni, aggiungi Relazioni di ricerca > Richiedente > Il tuo campo utente personalizzato | Seleziona il valore del campo utente
- Fai clic su Salva
Il trigger aggiunge vip
all’utente e a tutti i ticket successivi di quell’utente.
Passaggio 3: Verifica se un tag utente è stato aggiunto da un trigger
Segui i passaggi seguenti per verificare se un tag utente è stato aggiunto da un trigger.
- Vai a Centro amministrativo > Persone > Campi utente > Apri il campo utente e individua le cifre subito dopo l’ ID del campo personalizzato nella parte superiore della pagina
- Usa l’URL qui sotto e sostituisci
fieldID
con l’ID campo utente trovato al punto 1 e il tuo sottodominio Zendesk invece diyoursubdomain
https://yoursubdomain.zendesk.com/api/v2/user_fields/fieldID
Nei risultati, annota il valore numerico che apparirà dopo"id"
- Usando questo URL qui sotto, sostituisci
yoursubdomain
con il tuo sottodominio Zendeskeffettivo :https://yoursubdomain.zendesk.com/api/v2/triggers/active.json?active=true&page=1
- In quella pagina, cerca l’ID del valore dal punto 2 nell’elenco dei trigger
Apparirà il nome del trigger, insieme al valore del campo utente personalizzato e al tag:
Avvertenza sulla traduzione: questo articolo è stato tradotto usando un software di traduzione automatizzata per fornire una comprensione di base del contenuto. È stato fatto tutto il possibile per fornire una traduzione accurata, tuttavia Zendesk non garantisce l'accuratezza della traduzione.
Per qualsiasi dubbio sull'accuratezza delle informazioni contenute nell'articolo tradotto, fai riferimento alla versione inglese dell'articolo come versione ufficiale.
6 commenti
Alik Fedorenko
We are also running into the need to automatically tag users when an organization is assigned to a user.
0
Victoria Thrash
1263082103229 the issue is that triggers only work when there is a ticket. we need to be able to update users regardless if there is a ticket.
1
Christine Diego
At the moment, there's no trigger action that can add a tag on the user profile, however you can use the custom user field option and use it on the trigger to add a user tag on the user profile. The trigger will add the tag to the user and any subsequent tickets from that user.
You can also post this as a feature request in feedback forum. Our Product Team reviews this forum regularly and it has inspired many of the enhancements we've made to Zendesk over the years.
0
Support Admin
Hello 1263082103229,
No, I did not try the custom field approach because it won't work for assigning a user to a user segment. That assignment is only based on "real" tags (no support for user fields). In other words, this method doesn't accomplish what the title says.
All this method does is to provide a way to initiate a trigger based on a custom user field (sort of the wrong direction ;-) ).
So is there another way to add a user to a user segment via a trigger?
0
Christine Diego
Unfortunately, there's no trigger action that will allow you to add tags on the user profile. Tags are added to tickets via triggers. Have you created the custom user field as mentioned on the article and trigger? Please take note that the trigger will fire when a ticket has been created.
0
Support Admin
Sorry, but I am not seeing how this adds a tag to the user profile. Are some steps missing?
My use case (as it is for many others) is to trigger off the user tag to assign a user to user segment (which only works off tags, and not any other fields), for example, to control visibility to articles.
How can automatically add a tag to the user profile?
0
Accedi per aggiungere un commento.