given a variable, how I can find in which business rule or client script is used ?

enriquegarcia-s
Mega Contributor

Given a variable, how I can find in which business rule or client script is used ?

1 ACCEPTED SOLUTION

The SN Nerd
Giga Sage
Giga Sage

If your talking about variables you probably won't find any references to these in business rules, as they are only really used in Catalog UI and Client Scripts.


I would recommend one or both of the approaches below



Global Search


I would recommend setting up a global search for customizations. I included the following tables:


2015-09-25_9-37-59.png


Type in the field name into the global search and you'll find pretty much every reference!


Administering Global Text Search - ServiceNow Wiki



Field Watcher


If you are talking about fields, an effective way to find all customization in regard to that field you may find Field Watcher useful.


  1. Navigate to the form for which you want to view field-level debugging information.
  2. Activate Field Watcher by right-clicking any field label on a form and select Watch - '<field name>'.
    The debug icon Debug.gifx.gif appears next to the field label. From this point on, the Field Watcher records every action taken on the selected field. For example, if you are watching a Priority field, if the priority is changed from Moderate to Low and the the record is updated, the Field Watcher will display information about that change.
  3. View the Field Watcher log by clicking the debug icon.
    A new pane opens at the bottom of the screen, showing a Field Watcher tab. It may also show tabs for JavaScript Logging and JavaScript Debugger.
    Field Watcher Full Screen.png
  4. Click the Field Watcher tab, if needed.
  5. Stop watching a field by right-clicking the field and selecting Unwatch - <field name>. To watch another field, right-click that field and select Watch - <field name>.
  6. Clear the Field Watcher log by clicking the clear log button Field Watcher Clear Log Button.png.
  7. Resize the Field Watcher pane by dragging the splitter bar up or down. Dragging the splitter bar to the bottom of the screen closes the Field Watcher pane. Reopen the pane by clicking the debug icon Debug.gifx.gif again.

Field Watcher - ServiceNow Wiki



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

View solution in original post

5 REPLIES 5

The SN Nerd
Giga Sage
Giga Sage

If your talking about variables you probably won't find any references to these in business rules, as they are only really used in Catalog UI and Client Scripts.


I would recommend one or both of the approaches below



Global Search


I would recommend setting up a global search for customizations. I included the following tables:


2015-09-25_9-37-59.png


Type in the field name into the global search and you'll find pretty much every reference!


Administering Global Text Search - ServiceNow Wiki



Field Watcher


If you are talking about fields, an effective way to find all customization in regard to that field you may find Field Watcher useful.


  1. Navigate to the form for which you want to view field-level debugging information.
  2. Activate Field Watcher by right-clicking any field label on a form and select Watch - '<field name>'.
    The debug icon Debug.gifx.gif appears next to the field label. From this point on, the Field Watcher records every action taken on the selected field. For example, if you are watching a Priority field, if the priority is changed from Moderate to Low and the the record is updated, the Field Watcher will display information about that change.
  3. View the Field Watcher log by clicking the debug icon.
    A new pane opens at the bottom of the screen, showing a Field Watcher tab. It may also show tabs for JavaScript Logging and JavaScript Debugger.
    Field Watcher Full Screen.png
  4. Click the Field Watcher tab, if needed.
  5. Stop watching a field by right-clicking the field and selecting Unwatch - <field name>. To watch another field, right-click that field and select Watch - <field name>.
  6. Clear the Field Watcher log by clicking the clear log button Field Watcher Clear Log Button.png.
  7. Resize the Field Watcher pane by dragging the splitter bar up or down. Dragging the splitter bar to the bottom of the screen closes the Field Watcher pane. Reopen the pane by clicking the debug icon Debug.gifx.gif again.

Field Watcher - ServiceNow Wiki



ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022