Ticket custom fields and user fields
Answered
Posted Apr 22, 2022
Hey there,
I'm currently looking to store the clients phone number while creating a new request. I didn't find any option regarding this matter in the Forms/Fields, only for email field that is added automatically in the form when the user is not signed in. Is there a way to save this phone number custom field inside the user profile contact details information automatically ? Currently our agents have to copy the number from the custom field in the ticket to the user profile.
Thanks !
1
14
14 comments
Tipene Hughes
Hey Michael Le,
Can you try updating your JSON body by putting the user field inside a user_fields object. Something like this:
Let me know if that helps!
Tipene
0
Michael Le
Hello! I'm looking to achieve something similar to this and I can't figure out what seems to be the issue as it's not running correctly. (I feel like I'm missing a huge component somewhere)
I have the webhook running correctly I believe and tested.
I have a custom date field that we're using to gather DoBs from End Users that we use on a webform, and I would like this to translate into a Custom User Field (Date field as well).
0
Tipene Hughes
I think the placeholder you're looking for is
{{ticket.ticket_field_option_title_<field ID number>}}
. You can read more about that here.I hope this helps! Feel free to reach out with any questions.
Tipene
0
Tim Wang
Hey I'm working on an webhook workflow and trying to get values for a custom field that is configured for a selection list. When I use the {{ticket.ticket_field_replacewithcustomfieldID}} we get the tag value and not the displayed value. Is there an additional notation to get the actual value rather than the tag value, the issue is that the tag values are restricted in character type/format that is not compatible with the solution we are working on
0
Bjorn Spruijt
Great, thanks a lot for helping out and I understand!! I tried to acquire the external_id in my home-page template to pass it as a parameter as default field value for the customer no. in a form, but that didn't work since the ticket object doesn't exist in the home-page template and it seems that using the trigger and webhook is the only way to go...
0
Tipene Hughes
Hey Bjorn Spruijt,
You can use the "{{ticket.requester.external_id}}" placeholder for the value. So, the JSON payload of your trigger should look something like this:
One thing to be aware of with this workflow is the potential for race conditions occurring when updating a ticket via trigger and webhook. Here's an article which goes in to more detail:
Can I use a trigger and a webhook to update tickets?
I hope this helps!
Tipene
0
Bjorn Spruijt
Hi! I have a similar situation as Ashley. I want to add the users external_id to a custom field (customer no). The updating of the custom field (customer no) with the solution in this thread works great, but how do I get the users external_id into the custom fields 'value' in the JSON? Any help would be very much appreciated!
{
"ticket": {
"custom_fields": [
{
"id": 360020980097,
"value": Here I need to pass the users external_id...but how?
}
]
}
}
0
Tipene Hughes
Have you tried implementing the solution shared earlier in this thread? I'd be happy to help out if there's any particular areas that are giving you trouble.
Thanks,
Tipene
0
PatientenserviceSavir
I have the same problem and it would be nice, to have a better solution than at the moment possible.
Regards
Sylvia
0
Christopher Kennedy
Is the info on the user profile in a custom user field with a tag value? If so, the ticket can inherit this tag from the user automatically so that it is present on the ticket. That would vastly reduce the effort needed to add the info to the ticket.
0
Sign in to leave a comment.