Background script or Action script step to fetch Previous value of a field?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2022 07:05 AM
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
Labels:
- Labels:
-
Scripting and Coding
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2022 05:50 PM
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.