- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-22-2020 09:49 AM
I want disable the check box and icon in list view any one can please tell me the solutions
Please find the below attachment
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 12:24 AM
Hi Venkatesh,
Did you use correct table while using list_edit ACL
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 12:02 AM
HI
it is working ui script but not working acl because already list view is not edit before
any solution is there
Thanks ,
Venkatesh .Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-24-2020 12:24 AM
Hi Venkatesh,
Did you use correct table while using list_edit ACL
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2020 06:18 AM
hi
i need help
i want schedule script is not working can you check the code
​
​var dataSources = ['Firewall Data', 'IPS Firewall', 'GRA Firewall'];
gs.log('*** Kicked off: 1. Running : Scheduled Script Firewall Operations');
//Get SysId of the Main data Source //cfee7764dbfd43007782f33eae9619fc
var sysIDOfRecord;
var dataSourceTable = 'sys_data_source';
var grCI = new GlideRecord(dataSourceTable);
grCI.addQuery('name', 'Firewall Operations');
grCI.addQuery('import_set_table_name', 'u_import_firewall_operations');
grCI.query();
if(grCI.next())
sysIDOfRecord = grCI.sys_id;
var attachmentTable = 'sys_attachment';
var dataSource = dataSources[0];
gs.log('*** Kicked off: 2. Data Source : ' + dataSource + sysIDOfRecord);
var i = 0;
//var execute = new ExecuteSchedules();
//execute.RunProcess();
var execute1 = new ExecuteSchedules();
execute1.RunProcess();
gs.log('*** Kicked off: 2.0 Data Source : ' + dataSource + sysIDOfRecord);
var grAttach = new GlideRecord(attachmentTable);
grAttach.addQuery('table_sys_id', sysIDOfRecord);
grAttach.orderByDesc('sys_updated_on');
grAttach.query();
gs.log('*** Kicked off: 2.1. Sys ID Of Data Source : ' + sysIDOfRecord);
gs.log('*** Kicked off: 2.2. Total Attachments : ' + grAttach.getRowCount());
while ( grAttach.next() )
{
gs.log('*** Kicked off: 3. In the While Loop');
var fileName = grAttach.file_name.toUpperCase();
if(fileName.indexOf('.XLS') > -1)
{
gs.log('*** Kicked off: 4. In the If Loop File Name : ' + grAttach.file_name);
fileName = grAttach.file_name.split('-');
fileName = fileName[1].replace('operations report','').trim();
//Choose right data source to attach the attchment
if(fileName.contains('GRA'))
dataSource = dataSources[2];
else if(fileName.contains('IPS'))
dataSource = dataSources[1];
else
dataSource = dataSources[0];
gs.log('*** Kicked off: 5. In the If Loop File Name : ' + dataSource);
grCI = new GlideRecord('sys_data_source');
grCI.addQuery('name', dataSource);
grCI.query();
if(grCI.next())
{
gs.log('*** Kicked off: 6. In the If of Source Table : ' + dataSource);
var deleteAttach = new GlideRecord(attachmentTable);
deleteAttach.addQuery('table_sys_id', grCI.sys_id);
deleteAttach.addQuery('table_name', dataSourceTable);
deleteAttach.query();
deleteAttach.deleteMultiple();
grAttach.setValue('table_sys_id', grCI.sys_id);
grAttach.setValue('table_name', dataSourceTable);
grAttach.update();
gs.log('*** Kicked off : 7. Executing = ' + dataSource);
var rec = new GlideRecord('scheduled_import_set');
rec.get('name', dataSource);
SncTriggerSynchronizer.executeNow(rec);
gs.sleep(30000);
gs.log('*** Kicked off : 8. Executed = ' + dataSource);
}
}
}
Thanks and Regards
Venkatesh Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2020 07:34 AM
Hi Venkatesh,
Could you please raise another question for this and past the link here?
I believe the previous question is already answered.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2020 07:13 AM