Hi,
I’m trying to read and write to csv values from a json object. But dynamic array has values from 0…n and don’t know how to read all the values. I’m tryin to get values from "auxiliaryNames element.
I’m trying to do it like this:
For each item in myvariable(“results”)
assign auxiliaryNames = myvariable(“auxiliaryresults”)(0)(“name”).tostring
Activity requires the index and I don’t know how to manage this.
{
"type": "fi.prh.opendata.tr",
"version": "1",
"totalResults": -1,
"resultsFrom": 0,
"previousResultsUri": null,
"nextResultsUri": null,
"exceptionNoticeUri": null,
"results": [
{
"businessId": "0152343-6",
"name": "Henkel Finland Oy",
"registrationDate": "1896-10-23",
"companyForm": "OY",
"detailsUri": "http://avoindata.prh.fi/opendata/tr/v1/0152343-6",
"bisDetailsUri": "http://avoindata.prh.fi/opendata/bis/v1/0152343-6",
"language": "SE",
"latestRegistrationDate": "2019-06-29",
"checkDate": null,
"names": [
{
"order": 0,
"name": "Henkel Finland Oy",
"registrationDate": "2017-01-01",
"endDate": null,
"language": null
}
],
"auxiliaryNames": [
{
"order": 1,
"name": "Henkel Cosmetic",
"registrationDate": "1998-03-31",
"endDate": null,
"language": null
},
{
"order": 2,
"name": "Henkel Fincos",
"registrationDate": "1998-03-31",
"endDate": null,
"language": null
},
{
"order": 3,
"name": "Tam-Kos",
"registrationDate": "1998-03-31",
"endDate": null,
"language": null
},
{
"order": 4,
"name": "To-Lu",
"registrationDate": "1998-03-31",
"endDate": null,
"language": null
},