Find a specific record used in entire instance like business rules, client script, workflow and all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2026 12:21 AM
Hi Everyone,
Need reusable script to find a specific record used in entire instance like Business Rules, Client Scripts, Script Includes, Workflows, Flow designers, Scheduled scripts, ACLS, Data policies, Transform Scripts, Integrations, REST Messages Catalog Variables and all catalog related policies and scripts, custom tables resembling Business Hierarchy and all tables/ columns where Business Hierarchy, Functional Hierarchy and Alternate Hierarchy tables are being referenced.
We need to replace the that record with some other records. Please suggest how to achieve this requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
Hi @surya74
- Use code search in ServiceNow Studio to search through all applications and tables on an instance to locate a specific app, app file, or code snippet. Refer: Find an app or app file using code search
- You can check the Payload field for your keyword in sys_update_xml.
- You can check sys_hub_flow for Subflow related keywords
- Explore sys_variable_value table for keyword search in Workflow activity
At the end , check the tables and to make easy your job, write a background script as per your requirement
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
