Unable to get value from custom fields through ZAF client

Answered

4 Comments

  • Ahmed Zaid
    User Group Leader Community Moderator

    Hi Ron McClung,

    To get the field value, use

    client.get('ticket.customField:custom_field_78069627')

    The syntax you are using is helpful to get the custom field object itself to query its type, properties, etc.

    1
  • Ron McClung

    Thanks

    0
  • Eric Nelson
    Zendesk Developer Advocacy
    Hey Diego, 

    You should have access to all of the fields available on the form whethere you're hiding them or not. Just to clarify, is this field purposely being hidden from the agent UI? Is it part of the form you're working with? If you do client.get('ticketFields') to list all of fields of the ticket's form you're working on, do you see it there? 
    0
  • Diego Bechi

    Hi Eric, 

    The custom field I'm trying to update is not actually added to any form so I'm not seeing it when using client.get("ticketFields").

    I'm able to access the field now and as you can see on the screenshot, I can get it as null first, then set the new value and then when get the value again, I'm seeing it added.

    But it's not getting saved when the ticket is submitted and maybe this is because the customField is not added to any form currently

    0

Please sign in to leave a comment.

Powered by Zendesk