How to bulk update KB article valid to dates to specific dates

Khalnayak
Tera Guru

HI there,

I have been tasked to update the valid to date of over 1000 KBs.

I have a spreadsheet containing the columns of current valid to date and new valid to date.

What script do I need to run to update each KB with it's unique new valid to date.

As each KB will have different valid to date,  I can't simply set the same date for all of them.

Please help.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Usmaan,

Please create data source and transform map for this on knowledge table

Map the new valid to date from excel to the target field of Valid to date.

Create a transform map

Data sources

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Thanks Ankur, I was hoping for a simpler solution.

Just to confirm, we can't do this via a fix script?

Hi Usmaan,

One time schedule job or fix script should be fine.

It's just that you should know for which KB Numbers the script should run and if all the KBs should have same Valid to date then it makes sense running script rather than Data Source and transform map approach.

If every KB has different Valid to date then better to go with Data source approach.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader