how to revert back field values

Aishwarya20
Tera Contributor

Hi,

We have state field on asset table, i want to revert that field value back there are around 1000 records updated the state values how can i achieve this?

 I have audit enabled for state field as well.

Thanks

Tanushree

4 REPLIES 4

Kieran Anson
Kilo Patron

You can use the HistoryWalker - Scoped, Global | ServiceNow Developers API to walk backwards to the previous value and then set the value in a glide update.

Thanks for the reply

can you give me an idea, how can i use this api?

Mohit Kaushik
Mega Sage
Mega Sage

Hi Aishwarya,

The easiest way will be to write a background/fix script to revert the values for all those records.

You need to glide the records in asset table for which you want to update the state values and then just update those reocrds.

If you need any help with the script then let me know I would be happy to help you.

 

Please mark this as correct and helpful if it resolved the query or lead you in right direction.

Thanks,
Mohit Kaushik
Community Rising Star 2022

Thanks,
Mohit Kaushik
ServiceNow MVP (2023-2025)

Thanks for your reply

can you help me with the script?