The CreatorCon Call for Content is officially open! Get started here.

Background script or Action script step to fetch Previous value of a field?

Kamidi Saivinay
Tera Contributor

Hi,

Can anyone help me in getting the Previous value of a field from the Action Script step in Flow designer or from BG script.

I guess we can query Audit table to get the oldvalue and newvalue. Is any other way to fetch them other than querying audit history table.

Thanks in advance

 

1 REPLY 1

Bert_c1
Kilo Patron

A business rule defined for that table that records are added/updated has access to the record's value current fields and previous fields. see:

Business rules (servicenow.com)

But I'm not familiar with how Action Scripts in Flow Designer works, others can comment on that.