Recherches récentes


Pas de recherche récente

receiving null custom field data from ZAFClient



Publication le 08 avr. 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 commentaire

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


Se connecter pour laisser un commentaire.

Vous ne trouvez pas ce que vous cherchez ?

Nouvelle publication