Búsquedas recientes


No hay búsquedas recientes

receiving null custom field data from ZAFClient



Publicado 08 abr 2022

recently we've found different behavior for our public vs private apps. after registering our app we create a new instance of our widget.

client.on('app.registered', function (appData) {
return new SessionSidebar(client, appData);
})


our widget attempts to read settings:

if (!isNullOrEmpty(this._metadata.settings.UserUidField)) {
uidFieldName = ('user.customField:' + this._metadata.settings.UserUidField).trim();
}


our is null or empty parameter needs to check for the presence of string value "null" instead of simply the null type. we've found that on public apps if a user field setting is empty we'll receive a "null" string, while on private apps we'll receive a null type instead. 

function isNullOrEmpty(param) {
    return !param || typeof param !== "string" || param === "null" || param.trim() === "";
}

has anyone seen this behavior before?


0

3

3 comentarios

Hey Miguel,

Sorry I missed your response! I'll go ahead and move this into a ticket. 

Thanks!

1


that would be great, thank you!

0


Hey Miguel,

That's quite weird. Would you mind if I pull this into a ticket so we can get more info?

Thanks!
 

0


Iniciar sesión para dejar un comentario.

¿No encontró lo que buscaba?

Nueva publicación