How to get the agent info in Application.
Beantworteti am developing a zendesk application using Zendesk Application Framework. I want to get the agent data/agent id of the currently logged in agent for that instance of application in a application. how can i get it using client object.
in short what i want to is to fill the custom field along with the id of agent who filled it using Zendesk application.
-
Hi there,
If you're in support:
client.get('currentUser')
Is what you're looking for. This will return information on the user interacting with the app in Support. More details can be found here: https://developer.zendesk.com/api-reference/apps/apps-support-api/all_locations/#get-5
Hope this helps!
-
Thank you so much.
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
2 Kommentare