ETL Definition quick start guide
Learn how to set up and use an ETL definition to import data into ServiceNow tables.
始める前に
Role required: admin
For this quick start guide, we're going to import data in the following JSON file to ServiceNow target tables. This JSON file contains hierarchical data for a school, classes, students and subjects. Save the following content to a JSON file.
[{
"name": "schoolA",
"classes": [
{
"name": "classA",
"students": [
{"name": "studentA", "subjects": [{"name": "subjectA", "marks": 80},
{"name": "subjectB", "marks": 90},{"name": "subjectC", "marks": 100}]},
{"name": "studentB", "subjects": [{"name": "subjectA", "marks": 75},
{"name": "subjectB", "marks": 85}, {"name": "subjectC", "marks": 95}]}
]
},{
"name": "classB",
"students": [
{"name": "studentC", "subjects": [{"name": "subjectA", "marks": 60},
{"name": "subjectB", "marks": 70}, {"name": "subjectC", "marks": 80}]},
{"name": "studentD", "subjects": [{"name": "subjectA", "marks": 55},
{"name": "subjectB", "marks": 65}, {"name": "subjectC", "marks": 75}]}
]
}
]
}]手順
-
Create a data source and load data.
-
Create the target table structure to import data.
- In this example, we have a school with multiple classes, each class has multiple students, and each student has multiple subjects.
- Create a table structure to reflect these relationships.
-
School -> name : string. -
Class -> name : string , school : reference to school. -
Student -> name : string, class : reference to class. -
Subject -> name : string, mark : integer, student : reference to student.
-
Create an ETL Definition to map the JSON record data to target tables.
-
Create entities.
-
Add RTE Entity Mappings.
-
Create a Robust Import Set Transformer record and run the import.