{
"type": "object",
"properties": {
"reports": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"type": {
"type": "string"
},
"columns": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"label": {
"type": "string"
}
}
}
},
"content": {
"type": "array",
"items": {
"type": "array"
}
}
}
}
}
}
}The part that I am interested in is in red.
Basically, this an array of "reports" (which will always be only one array) which contains an array of "columns" (the column headers) and the array of "content" (which is the data I need). Some sample data is below. Does anybody know how I can use flow to create a CSV using this information?
{
"reports": [
{
"id": "53a4340a-b025-4d32-bd8f-2aa435b268b7",
"type": "profile",
"columns": [
{
"name": "profiles_guid",
"type": "text",
"label": "GUID"
},
{
"name": "profiles_first_name",
"type": "text",
"label": "First name"
},
{
"name": "profiles_last_name",
"type": "text",
"label": "Last name"
},
{
"name": "profiles_email",
"type": "text",
"label": "Company email"
},
{
"name": "profiles_start_date",
"type": "date",
"label": "Start date"
},
{
"name": "profiles_employee_type",
"type": "text",
"label": "Employee type"
},
{
"name": "profiles_category_6696",
"type": "text",
"label": "Department"
}
],
"content": [
[
"739675e7-2041-46a7-8965-691a5dac37cc",
"Alice",
"James",
"AJames@none.com",
"09/03/2019",
"Full Time",
"IT"
],
[
"8dba6571-abba-4fbc-b0b6-9858af6858e2",
"Paul",
"Jones",
"PJones@none.com",
"08/01/2019",
"Part Time",
"Human Resources"
]
],
"links": {}
}
],
"meta": {},
"links": {},
"linked": {}
}Thanks in advance,