We have a web service that returns data in the following schema:
"type": "object",
"properties": {
"total": {
"type": "integer"
},
"per_page": {
"type": "integer"
},
"current_page": {
"type": "integer"
},
"last_page": {
"type": "integer"
},
"next_page_url": {},
"prev_page_url": {},
"from": {
"type": "integer"
},
"to": {
"type": "integer"
},
"data": {
"type": "array",
"items": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"transferred_at": {
"type": "string"
},
"est_departed_at": {
"type": "string"
},
"est_arrival_at": {
"type": "string"
},
"inventory_transfer_items": {
"type": "array",
"items": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"description": {
"type": "string"
},
"qty": {
"type": "string"
},
"price": {
"type": "string"
},
"uom": {
"type": "string"
},
"received_at": {
"type": "string"
},
"received_qty": {
"type": "string"
},
"inventory_type": {
"type": "object",
"properties": {
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"net_weight": {
"type": "string"
},
"packed_qty": {
"type": "string"
},
"cost": {
"type": "string"
},
"uom": {
"type": "string"
}
}
}
},
"required": [
"created_at",
"updated_at",
"description",
"qty",
"price",
"uom",
"received_at",
"received_qty",
"inventory_name",
"strain_name",
"inventory_type"
]
}
}
},
"required": [
"created_at",
"updated_at",
"transferred_at",
"est_departed_at",
"est_arrival_at",
"inventory_transfer_items"
]
}
}
}
}Note there are two nested arrays in the return body - "inventory_transfer_items" and "inventory_type".
How do I access the inner arrays within PowerApps? The top level array "data" is no problem - but the next inner array "inventory_transfer_items" shows up as type object. I can't access the elements of "inventory_transfer_items" either.
I want to store the results in a PowerApps collection. Thanks for your help!


Report
All responses (
Answers (