Recent searches
No recent searches
Trying to update a custom field in user profile with a ticket field, need your help
Posted Feb 05, 2024
Hi All,
I am using, where the following payload, where "16001680786589" is the field ID for the custom field, and "ssuserid" is the field key in user attribute's, doesnt seem to be working,
can some one please help?
{
"user": {
"user_fields": {
"ssuserid": "{{ticket.ticket_field_16001680786589}}"
}
}
}
1
4
4 comments
Diana Rky
It looks like there might be an issue with the payload. Have you double-checked the field ID and key?
0
Jakub
No, it does not make any difference, in my case I also updated the custom fields.
Do you use a webhook within a trigger to make the API call? If yes, does it return 200? I had to refresh an user page to see the change in the custom user field. Here is a video for my test, you can see if yours is set the same. https://vimeo.com/910370124?share=copy
0
Jay
@Kuba


Thanks for writing back.
The field "ssuserid" is a custom field, does that make any difference?
User:
Ticket:
This is how I have configured it, can you please check and suggest?
Endpoint
https://<ourdomain>.zendesk.com/api/v2/users/{{ticket.requester.id}}.json
Description
-
Method
PUT
JSON body
{
"user": {
"user_fields": {
"ssuserid": "{{ticket.ticket_field_16001680786589}}"
}
}
}
0
Jakub
Hello Jay,
I've just performed a test on my end setting up a webhook to auto populate a user field from ticket field, the endpoint I used is the following:
I sent this payload:
And it worked as expected, the user field was populated with the ticket field value.
0
Sign in to leave a comment.