HR data to remove during cloning

Priya D
Kilo Contributor

Hi Experts,

I have a requirement to remove the HR confidential data after cloning. Is there any issues if we exclude the table from the exclude tables list.

Is there any other way to hide the hr data for admins such that admins should not be able to see the data.

 

1 ACCEPTED SOLUTION

luffy3478
Tera Guru

Please use exclude tables module under clone, to skip any data to be copied.

There wont be any issues if you do exclude.

View solution in original post

5 REPLIES 5

Jaspal Singh
Mega Patron
Mega Patron

Hi Priya,

 

One such option would be to get the data deleted from HR table when clone is in place by use of below background script.

 

var gr = new GlideRecord('hr_table_name');
gr.query();
gr.deleteMultiple();

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

luffy3478
Tera Guru

Please use exclude tables module under clone, to skip any data to be copied.

There wont be any issues if you do exclude.

Ahmed Drar
Tera Guru
Tera Guru

Just exclude your HR tables when you request cloning

 

https://docs.servicenow.com/bundle/kingston-platform-administration/page/administer/managing-data/task/t_ExcludeATableFromCloning.html

 

Priya D
Kilo Contributor

Thank you everyone for quick help. Appreciate it!

 

I have included the tables in the exclude tables in the clone app.

Along with this I have also written the BS to delete the existing records.