how to make Datalookup Matcher tables available regardless of scopes
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi All,
I would like to make OOB Datalookup Matcher tables available regardless of scopes
For that I did below thing
1. allow_tables:dl_problem_priority:dl_u_assignment:dl_u_priority
2. tableChoicesScript=AccessMatcherTables
I want to make available this matcher tables to Global, CSM, HR. So how can I do.
Script Include: AccessMatcherTables :
var AccessMatcherTables = Class.create();
AccessMatcherTables.prototype = {
initialize: function() {},
process: function() {
var allowedScopes = ['global', 'sn_customerservice', 'sn_hr_core'];
var answer = '';
var answerArr = [];
if (allowedScopes.length > 0) {
for (var i = 0; i < allowedScopes.length; i++) {
var gr = new GlideRecord('sys_db_object');
gr.addQuery('super_class.name', 'dl_matcher');
gr.addQuery('sys_scope.scope', allowedScopes[i]);
gr.query();
if (gr.next()) {
answerArr.push(gr.sys_id.toString());
}
}
}
answer = answerArr.join(',');
return answer;
},
type: 'AccessMatcherTables'
};
Still No use, OOB matcher tables also not showing for Global also.
any suggestions and help here please
0 REPLIES 0