Búsquedas recientes


No hay búsquedas recientes

Basic App functionality with custom fields

Respondidas


Publicado 12 ago 2021

Hello!

I'm using a basic tutorial from the site that looks like this:

var client = ZAFClient.init();
client.invoke('resize', { width: '100%', height: '200px' });
client.get('ticket.subject').then(
function(data) {
var z_subject = data['ticket.subject'];
console.log('Ticket Subject is ' + z_subject);

This prints the subject line to the console no problem.

But what I want to do is something like this:


var client = ZAFClient.init();
client.invoke('resize', { width: '100%', height: '200px' });
client.get('ticket.custom_field_12312321').then(
function(data) {
var zFieldValue = data['ticket.custom_field_12312321'];
console.log('The Field Value is ' + zFieldValue);

I want to get to a custom field value to display just like the subject displays and I can't figure out the right syntax.

Thanks in advance!


1

2

2 comentarios

      Thanks for coming back and sharing that for other users, Raven!

      0


      found it in another post:

      ticket.customField:custom_field_360034719351

      1


      Iniciar sesión para dejar un comentario.

      ¿No encontró lo que buscaba?

      Nueva publicación