Can I Pre-fill ticket form field through server side app? | Community
Skip to main content

Can I Pre-fill ticket form field through server side app?

  • August 18, 2022
  • 1 reply
  • 0 views

Ram12

I am working on zendesk server side app, 
When App got initialized i am reading some-id from ticket from field and fetch data from third party APIs based on that some-id, I want to prefill ticket from field what i have received in Third party API response.

I can see there is method of Pre-fill the ticket subject 

client.set('ticket.subject', 'Test something').then(function(data) {

  console.log(data);

});

Is there an way by which i can pre fill the ticket form field?

Thank you

1 reply

Ram12
  • Author
  • August 18, 2022

I have solved it 

client.set('ticket.customField:custom_field_' + defaultValues.trackingNoFieldId,    '1324512467').then(function (data) {

   console.log(data);

});