Event Rule replace characters in string

david_taggart
Mega Guru

I'm working to receive events from our legacy monitoring environment and tie select events to Application Service CIs. Most of the Application Service CIs have names with spaces, however our legacy monitor often uses names where spaces have been replaced with underscores. To make things even more confusing, different types of events will have this key name saved in different fields depending on the underlying event type.

 

Is there a way to match a name with underscores such as "Corporate_Email" against a CI that has a space, such as "Corporate Email" without either customizing the push connector script, or the source events themselves? Does the ServiceNow Java RegexParser allow for translation or substitution?

1 ACCEPTED SOLUTION

david_taggart
Mega Guru

After working with our consultants, we came to the conclusion that ServiceNow requires character-perfect string matching for CI Binding. We worked around this problem by modifying our legacy environment to include a new key-value pair, with underscores replaced by spaces.

View solution in original post

1 REPLY 1

david_taggart
Mega Guru

After working with our consultants, we came to the conclusion that ServiceNow requires character-perfect string matching for CI Binding. We worked around this problem by modifying our legacy environment to include a new key-value pair, with underscores replaced by spaces.