Adding custom fields to users

Return to top

44 Comments

  • Arianne Batiles
    Zendesk Customer Care

    HiJahn Bronilla,

    Custom user fields can now be shown in the user data app. You need to click on the Settings (gear icon) and select the user fields you want to display in the app.

    1
  • Jahn Bronilla
    Community Moderator

    Thank you @Arianne Batiles

    0
  • Mgo Dono

    Is there a way to create a ticket field and sync the user fields into the ticket section?

    0
  • Mehmet KIZILASLAN

    ticket field Where should I create it?

    0
  • Brett Elliott
    Zendesk Product Manager

    HiMgo Dono,

    Is there a way to create a ticket field and sync the user fields into the ticket section?

    Not natively in Zendesk. I have seen some Zendesk customers achieve user <> ticket field syncing with custom scripts that use our public APIs.

    If you don't mind me asking, what are you trying to achieve by syncing user and ticket fields?

    0
  • Federico Vitale

    Hi! I'd like to implement something like this: since the service I'm selling is age and location specific, I want to ask the prospect customers to input also their DoB and ZIP code when submitting a request. I managed to add the custom fields to the tickets. Is there a way to update the customer values automatically once the ticket is opened? Alternatively, can I just feed the user info to the user without going through the ticket fields? Thank you in advance

    0
  • Dane
    Zendesk Engineering
    嗨,弗雷德里克,

    It's possible by utilizing Update APIs, Webhooks and Triggers.

    First is to create yourwebhookusing theuser update API.

    This will be the endpoint that you will use.
    https://.zendesk.com/api/v2/tickets/{{ticket.requester.id}}.json




    The next step is to create the trigger that will utilize the webhook above. I have used these conditions to serve as your reference.



    This is the action.



    Please take note of the values inside the red and green box.

    {
    "user": {
    "userfields": { "test_user_field": "{{ticket.ticketfield_5064777944463}}"
    }
    }
    }


    "test_user_field": This is the Field Key found on the custom user field.
    "": This is the placeholder for the custom ticket field that you have created.

    You can freely add addition fields here like DoB and Location.

    Once done, it should automatically update the user field value depending on the corresponding ticket field value each time a ticket is created.

    0
  • Federico Vitale

    Thanks,Dane!

    0
  • Phil Capezio

    Trying to accomplish the same thing, and I'm using all of the exact same settings, but not having any luck. In my use case, I'm trying to take the customer's city from a custom ticket field and add it to their profile with a custom user field. Both fields are text fields for reference. What am I missing? Thanks in advance.

    0
  • Zsa Trias
    Zendesk Customer Care

    Hello Phil,

    It seems that you have created a trigger to run the webhook and populate the user field per Dane's solution above.

    I would suggest检查事件的票first to confirm if the trigger had run.
    It must be that the conditions of the trigger weren't met which could be the reason why the webhook didn't apply the update.

    0
  • Phil Capezio

    Caught the mistake.

    It's user_fields and not userfields

    {
    "user": {
    "userfields": { "test_user_field": "{{ticket.ticketfield_5064777944463}}"
    }
    }
    }
    0
  • Zsa Trias
    Zendesk Customer Care

    Awesome! Thanks for sharing! :)

    0
  • Hayley Johnson

    Is it possible to customise the view for users based on brand? We have an integration that is pulling user ID's and other user information from different places for 2 different brands. Currently all fields show on the user page which looks messy. It would be good if we could only show the user fields relevant to the brand associated with that user?

    0
  • Jahn Bronilla
    Community Moderator

    Hayley Johnson- I guess best to have 2 different ticket forms if you need different ticket fields per brand.

    0

Pleasesign into leave a comment.

Powered by Zendesk