Read User_Fields globally from all locations (for example: ticket_sidebar)?

2 Kommentare

  • Ahmed Zaid
    User Group Leader Community Moderator

    Hi Wilhelm Lenz

    Your function queries Zendesk API, and does not by itself rely on the context location. If what you need to acquire is the userId, then you need to define what the user role is within the ticket context. Assuming you are interested in the ticket requester's userId, you can try


    Upon resolving the promise should return:

    {  "": integer}
  • Wilhelm Lenz

    Hi Ahmed

    No I am not directly interested in the user ID but in the value in the user field, which I query with client.get. I unfortunately only found the connection with the requests and the get to access a user field. I can write to it with a setter on user.custom_field: from the ticket_sidebar directly. But I can't query this user field. I haven't found any other way to do that except from the user_sidebar. The user id is not important for me at this moment. I just want to be able to access and read the user field in the user_sidebar from the ticket_sidebar.


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Powered by Zendesk