Unable to fetch values from API SNC.UserCriteriaLoader.getAllUserCriteria(userId) in service portal widget
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2019 11:10 PM
Hi Experts,
I am not getting any value from the API SNC.UserCriteriaLoader.getAllUserCriteria(userId) when added to the script of my widget (in the global scope). Although this works fine when I run it in the scripts - background. Any help with this is greatly appreciated.
Thanks,
Raskill
Labels:
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2019 08:25 PM
var result = new sn_uc.UserCriteriaLoader.getAllUserCriteria('62826bf03710200044e0bfc8bcbe5df1');
gs.log(result);
you need to pass the user sys_id as a parameter. verify your userId varaible has correct sys_id value.