Recent searches


No recent searches

how to set metadata in client app?



Posted Nov 23, 2023

One project set Zendesk navbar, ticket_sidebar.
I want to store the data entered by the user in the navbar app in metadata and use it in ticket_sidebar, how can it be implemented?
The project is being developed in React 18 version.


0

3

3 comments

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi there! Could you give me a bit more information about the workflow here? Are you looking to send data from the nav bar to be immediately available in the ticket sidebar or are you trying to store this for later use? And by later, I really mean anything other than right away.

0


Hello 이상우

The way to transfer any data from one app location to another is by using the zafClient events.

1. You can registered a custom event on any locations (say `ticket_sidebar`).
2. You get the clientInstance of other location (say `nav_bar`) and then fire that custom event with data (on nav_bar zafClient). 
3. Have the client `on` custom event handler within `nav_bar`

Hope this helps!

0


Thank you for your respond
If there is no data such as an api key when accessing ticket sidebar,
I want to move it to Nav_app and input data.but, i think that custom event handler can't store input data.

I try to get installation app id and store input metadata in installation object.
But, this way has a little problem that delay time caused by asyncronized request.

Is there any different way to store input data?

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post