Exploded Format in CSV Entities Export
The exploded
parameter describes how the entities with multiple
values are displayed in the CSV.
The default value of the parameter is false. This indicates each entity will be in one row. Attributes with multiple values will be organized in multiple columns.
true
, then each entity is
represented as a set of CSV lines, where the set is a cartesian product of the entity's
attributes. Examples
FhUppwQ
FhUpuCg
FhUpySw
FhUppwQ
has two values for FirstName
and
MiddleName
attributes.[
{
"uri": "entities/FhUppwQ",
"type": "configuration/entityTypes/HCP",
"attributes": {
"FirstName": [
{
"value": "Billy"
},
{
"value": "William"
}
],
"LastName": [
{
"value": "Thornton"
}
],
"MiddleName": [
{
"value": "Bobby"
},
{
"value": "Bob"
}
]
}
},
{
"uri": "entities/FhUpuCg",
"type": "configuration/entityTypes/HCP",
"attributes": {
"FirstName": [
{
"value": "John"
}
],
"LastName": [
{
"value": "Butler"
}
],
"MiddleName": [
{
"value": "Justin"
}
]
}
},
{
"uri": "entities/FhUpySw",
"type": "configuration/entityTypes/HCP",
"attributes": {
"FirstName": [
{
"value": "Peter"
}
],
"LastName": [
{
"value": "Pan"
}
],
"MiddleName": [
{
"value": "Paul"
}
]
}
}
]
exploded=false(default)
In
the exported CSV file the fields are listed in Table 1: CSV files generated when
exploded
is set to False
ID | Type | Attributes.FirstNam | Attributes.FirstName2 | Attributes.LastName | Attributes.MiddleName | Attributes.MiddleName2 |
---|---|---|---|---|---|---|
FhUppwQ |
HCP |
William | Billy | Thornton | Bob | Bobby |
FhUpuCg | HCP | John | Butler | Justin | ||
FhUpySw | HCP | Peter | Pan | Paul |
exploded=true
In the exported CSV file the following fields
are listed in Table 2: CSV file generated when exploded
is set
to True
.
ID | Type | Attributes.FirstName | Attributes.LastName | Attributes.MiddleName |
---|---|---|---|---|
FhUppwQ |
HCP | William | Thornton | Bob |
FhUppwQ |
HCP | Billy | Thornton | Bob |
FhUppwQ |
HCP | William | Thornton | Bobby |
FhUppwQ |
HCP | Billy | Thornton | Bobby |
FhUpuCg |
HCP | John | Butler | Justin |
FhUpySw |
HCP | Peter | Pan | Paul |