I have a business case to do three level if imports form a API JSON output.
{
"page_of_records": [
{
"record": {
"revenue": 20,
"impressions": 200,
"revenueLocal": 20,
"billingCountry": "United States",
"serviceCountry": [
{
"serviceCountry": "United States",
"revenue": 10,
"revenueLocal": 10,
"impressions": 100,
"rate": 10,
"brand": [
{
"brand": "Coke",
"revenue": 5,
"revenueLocal": 5,
"impressions": 50,
"rate": 10
},
{
"brand": "Pepsi",
"revenue": 5,
"revenueLocal": 5,
"impressions": 50,
"rate": 10
}
]
},
{
"serviceCountry": "India",
"revenue": 10,
"revenueLocal": 10,
"impressions": 100,
"rate": 10,
"brand": [
{
"brand": "Coke",
"revenue": 5,
"revenueLocal": 5,
"impressions": 50,
"rate": 10
},
{
"brand": "Pepsi",
"revenue": 5,
"revenueLocal": 5,
"impressions": 50,
"rate": 10
}
]
}
]
}
}
]
}
I'm doing a simple transformation and importing records to table1. On table 2 I need path to many on serviceContry along with table1 response id field. On the third import to table 3 I need path to many on brand *** with the response id field from previous table2 import.*** I tried this approach and I'm able to achieve till table2 import. On third import I’m not getting brand under path to many rather I'm still seeing service country.