최근 검색


최근 검색 없음

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


댓글을 남기려면 로그인하세요.

원하는 정보를 못 찾으셨나요?

새 게시물