02-24-2021 11:52 AM
How to access agent LoginName in Finesse Gadget.Am able to access Extension, ID but not loginName.Any info is helpful.
Solved! Go to Solution.
02-24-2021 09:38 PM - edited 02-24-2021 09:40 PM
@smeegada1, to get the login name, you need to:
_user = new finesse.restservices.User({ id: id, onLoad : _handleUserLoad });
_user._data.loginName;
02-25-2021 08:24 AM
var ID = user._data.loginName;
Look at the underline in the data part.
02-24-2021 09:38 PM - edited 02-24-2021 09:40 PM
@smeegada1, to get the login name, you need to:
_user = new finesse.restservices.User({ id: id, onLoad : _handleUserLoad });
_user._data.loginName;
02-25-2021 07:47 AM
Hi,
I already have below code in my init fucntion to load user object and accessing loginID with var ID1 = user.getId(); already.
user = new finesse.restservices.User({
id: cfg.id,
onLoad: _handleUserLoad,
onChange: _handleUserChange
});
You mean i can access loginName with below snippet?
var ID = user.data.loginName(); or var ID = user.data.getloginName(); or any different?
Thanks for response.
02-25-2021 08:24 AM
var ID = user._data.loginName;
Look at the underline in the data part.
02-25-2021 09:35 AM
Thank you, it worked.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide