Skip to content

Replacements

Aliyss Snow edited this page Nov 22, 2020 · 1 revision

Defining Replacements

To define a Replacement add a Replacement by inserting a row on the Extension Options Page.


Defining siteFilter

Define a siteFilter, so that it doesn't apply to all instances. -> This is a WIP.

Defining searchRegex

Regex

Insert the regex you want to replace values in ServiceNOW

Example

  • searchRegex: (CHG|INC|STRY|WORK|PRJT)\d+

Defining replaceValue

replaceValue

Replaces the regex with a custom html tag.

Example

  • tag: a
  • attribute: href="/text_search_exact_match.do?sysparm_search="
  • content:
Clone this wiki locally