最近搜索


没有最近搜索

receiving null custom field data from ZAFClient



已于 2022年4月08日 发布

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 条评论

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


登录以发表评论。

找不到所需的内容?

新建帖子