Adapter descriptions for Instance Data Replication
Summarize
Summary of Adapter Descriptions for Instance Data Replication
The Instance Data Replication (IDR) feature in ServiceNow allows for data modification before insertion into consumer instances. Various adapters serve specific data transformation purposes, enhancing the handling of producer data effectively.
Show less
Key Features
- Calculation Adapter: Performs operations on producer data, like multiplication or maximum/minimum value capping.
- Concatenate String Adapter: Appends specified strings to source data.
- Fixed-width Format Adapter: Reformats fixed-width input data using specific symbols for numbers and characters.
- Map Adapter: Maps source data to target values using comma-separated pairs, requiring exact matches.
- Pattern Adapter: Utilizes regular expressions to identify patterns in input data for transformation.
- Replace Adapter: Replaces specified strings or substrings based on defined occurrences.
- Split Adapter: Breaks a string into multiple segments based on a defined delimiter.
- Task Number Adapter: Modifies task numbers by adding or replacing prefixes.
- Time Zone Conversion Adapter: Converts time from one time zone to another.
Key Outcomes
By utilizing these adapters, ServiceNow customers can effectively manipulate and transform data during replication processes, ensuring data integrity and relevance in various contexts. This leads to enhanced data accuracy and usability across consumer instances. Customers can expect improved data handling capabilities tailored to their specific operational needs.
Adapters modify the producer data before inserting the data on consumer instances in Instance Data Replication (IDR).
Adapter fields
Each adapter has Name and Description fields. The name appears in the Adapter column. Use the Description field to explain the purpose of the data conversion.
Calculation adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
| Operation: Multiply Constant Value: 1.08 |
10 | 10.80 |
| Operation: Max Constant Value: 1000 |
1020 | 1000 |
| Operation: Floor Constant Value: 0 |
5.5 | 5 |
Concatenate String adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
| String: _v2 | Patch10236 | Patch10236_v2 |
Fixed-width format adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
| Match: ########## Output: (###) ###-#### |
7605551212 | (760) 555-1212 |
| Match: ##### Output: ###.## |
10000 | 100.00 |
| Match: ##\,### Output: ##### |
10,000 | 10000 |
Map adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
| Map: PRB=TASK, done=complete | PRB | TASK |
| Map: PRB=TASK, done=complete | done | complete |
| Map: PRB=TASK, done=complete | PRB1000 | (no mapping) |
Pattern adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
|
Regex: (.*),(.*) Output pattern: $2 $1 |
Smith, John | John Smith |
|
Regex: (ABC[a-zA-z][a-zA-z])(ABC[a-zA-z][a-zA-z]) Output pattern: $1 $0 |
ABCDEABCFG | ABCDE ABCDEABCFG |
|
Regex: (ABC[a-zA-z][a-zA-z])(ABC[a-zA-z][a-zA-z]) Output pattern: $1 release $0 |
ABCDEABCFG | ABCDE release ABCDEABCFG |
Replace adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
|
Find: London Replace: Madrid |
The product is London. The product is London. The product is London. | The product is Madrid. The product is Madrid. The product is Madrid. |
|
Find: $2 London Replace: Madrid |
The product is London. The product is London. The product is London. | The product is London. The product is Madrid. The product is London. |
|
Find: ${2} London Replace: Madrid |
The product is London. The product is London. The product is London. | The product is Madrid. The product is Madrid. The product is London. |
Split adapter
Use the split adapter to break a string into two or more strings using a specified delimiter made up of letters, numbers, or special characters (no spaces). In Output Pattern, use $ to specify groups. $0 represents the entire input, $1 represents the first group, $2 represents the second group, and so on. You can repeat a group in an output pattern, for example, $2, $1, $1. Multiple instances of a delimiter in source data create three or more groups.
| Parameter and value | Source data | Adapter output |
|---|---|---|
|
Delimiter: - Output Pattern: $2, $1 |
John-Smith | Smith, John |
|
Delimiter: - Output Pattern: $2, $1, $1 |
John-Harry-Smith | Harry, John, John |
|
Delimiter: - Output Pattern: $3 |
John-Harry-Smith | Smith |
Task number adapter
| Parameter and value | Source data | Adapter output |
|---|---|---|
|
Modification: Replace Number Prefix: PRB New Number Prefix: STRY |
PRB80899 | STRY80899 |
|
Modification: Add Prefix Prefix: STRY |
08099 | STRY80899 |
Time zone conversion adapter
Use the time zone conversion adapter to convert one time zone to another.
| Parameter and value | Source data | Adapter output |
|---|---|---|
| Output time zone: PDT | 07:00:00 am GMT | 00:00:00 am PDT |