Recent searches


No recent searches

Grabbing parent ticket requester from within a side conversation



Posted Jan 25, 2023

I’m interested in grabbing custom user fields from the requester of a parent ticket while on the ticket sidebar of a side conversation child ticket. The best I can tell is that the end of the externalId on the ticket object has the parent ticket ID so I can make a request to grab the parent ticket that way. I’m curious if there’s a less hacky way to accomplish this. 

thank you!


0

4

4 comments

image avatar

Arianne Batiles

Zendesk Customer Care

Hi Alexander Hughes

Is it possible to provide us with more information on your use case? One possible way is to create a macro with a side conversation via email as an action and add the placeholder {{ticket.requester.custom_fields.my_custom_field}} to reflect the custom user field. 

0


Our custom app right now uses the zafClient to get a custom field which is an ID we use for customer records. We are using multi brand, so each zendesk account has 3 customer IDs which are custom fields. 

From the ticket, I can do zafClient.get(ticket.requester.customField:customerId) but this won’t work from a side conversation because the requester becomes an agent, not the end user that we care about. 

We use these custom ID fields to query our company APIs to grab data that we display about the customer and their purchases. 

The workaround that I see is to grab the parent ticket ID from the externalId on the side conversation ticket, and then get the requester from that. I would use zafClient.request to do this. I’m wondering if there’s a better pattern for this kind of use case. 

Thanks!

0


image avatar

Arianne Batiles

Zendesk Customer Care

Hi Alexander, 

I just got a confirmation form our Developer Support team that zafClient.request is still the best way to do this where you will sideload the Users endpoint to get the user field info and/or externalID. 

1


Thanks for the confirmation!

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post