Welcome to the
WalkMe Help Center
Please log in to continue
Please log in to continue
When configuring a WalkMe extension, you use regex to define which domains WalkMe should inject into. This article covers general regex guidelines and platform-specific examples for Salesforce, Workday, and SuccessFactors.
Regex should be as specific as possible while still working across different pages. Use customer-specific prefixes to achieve this balance.
Each environment must have its own unique regex. Use prefixes to differentiate between production and sandbox.
Begin and end every regex string with .*
Instead of using specific digits, use .* in their place.
Always put a \ before every period.
To include a URL with two or more different prefixes, use (first|second|third) where the prefixes occur.
To exclude a specific word from a match, use (?!word).
To include more than one regex in a package, separate each with | and no spaces.
Always match the exact case of the URL in your regex.
In some cases you may need to restrict injection to a specific iFrame while preventing WalkMe from loading in other iFrames that reference the same domain.
Salesforce extensions require extra care due to the variance across pages and the presence of analytics iFrames.
When creating the extension:
Salesforce Classic:
.*customername.*\.cs.*\.my\.salesforce\.com.*|.*cs.*\.salesforce\.com/(?!console).*|.*cs.*\.visual\.force\.com.*
Salesforce Lightning:
.*cs.*\.lightning\.force\.com.*
Salesforce Console:
.*cs.*\.salesforce\.com/console.*
Salesforce Classic:
.*customername\.my\.salesforce\.com.*|.*na.*\.salesforce\.com/(?!console).*|.*na.*\.visual\.force\.com.*
Salesforce Lightning:
.*na.*\.lightning\.force\.com.*
Salesforce Console:
.*na.*\.salesforce\.com/console.*
Test: .*impl\.workday\.com/customername.*
Production: .*myworkday\.com/customername.*
Test: .*hcm.*preview\.sapsf\.com.*
Production: .*performancemanager.*\.successfactors\.com.*
When configuring extensions for platforms with similar URLs — for example, standard Salesforce and Salesforce Service Cloud — use regex to differentiate between them.
Normal SFDC URL: https://cs2.salesforce.com/home/home.jsp?tsid=02u0000000000hV
Service Cloud URL: https://cs2.salesforce.com/console?tsid=02u50000000e56v
The difference is the word "console" appearing after salesforce.com. Use this to your advantage:
Service Cloud regex:
.*cs2\.salesforce\.com/console.*
For SFDC, use negative lookahead to exclude any URL where "console" follows salesforce.com:
SFDC regex:
.*cs2\.salesforce\.com/(?!console).*
This matches https://cs2.salesforce.com/home/home.jsp but not https://cs2.salesforce.com/console.