- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2024 02:40 PM
Hi @mariavic1998 ,
ServiceNow stores most changes in the sys_audit table you can go there to get all previous values if needed.
A fair warning though, the sys_audit table is huge, so don't go down this path if not absolutely necessary.
Now to the solution;
Create a Subflow that takes input parameters on which table, field name, record sysid, and created by.
The subflow itself will be simple, it does a look up on the audit table, using supplied input parameters to get the result, and returns the "oldvalue" value.
Then call on that subflow from whatever Flow that uses the trigger "Record updated".
Please refer to below threads:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0855770
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda