Hi!
I’m quite desperate trying to figure out how to get pageVariables out of an API-Response after using a scanned QR-Code to set the GET Parameter.
My Problem is this:
The response contains a complex list, but I only need a little bit of information to show it as text in input fields.
{
“code”: 200,
“count”: 1,
“devices”: [
{
“UDID”: “XXXXXXXXXXXXXXXXXXXXX”,
“locationId”: 0,
“serialNumber”: “XXXXXXXXXXX”,
“assetTag”: “”,
“class”: “ipad”,
“model”: {
“name”: “iPad (5th generation, Wi‑Fi)”,
“identifier”: “iPad6,11”,
“type”: “iPad”
},
“os”: {
“prefix”: “iOS”,
“version”: “14.6.0”
},
“name”: “XXXXXXXXXXXXXXXXXXXX”,
“owner”: {
“id”: 1,
“locationId”: 0,
“username”: “SattlerP”,
“email”: “XXXXXXXXXXXXXXXX”,
“firstName”: “Philipp”,
“lastName”: “Sattler”,
“name”: “Philipp Sattler”,
“vpp”: [
{
“status”: “Registered”
}
],
“notes”: “”,
“modified”: “2021-09-19 19:06:38”
},
“isManaged”: true,
“isSupervised”: true,
“enrollType”: “dep”,
“depProfile”: “GSWT Default”,
“groups”: [
“GSWTLehrer”,
“GSWTLehrer”
],
“batteryLevel”: 0.58,
“totalCapacity”: 32,
“availableCapacity”: 24.6022,
“iCloudBackupEnabled”: false,
“iCloudBackupLatest”: “0”,
“iTunesStoreLoggedIn”: false,
“region”: {
“string”: “”
},
“notes”: “”,
“lastCheckin”: “2021-09-30 16:08:51”,
“modified”: “2021-09-30 16:06:22”,
“networkInformation”: {
“IPAddress”: “185.80.170.82”,
“isNetworkTethered”: “0”,
“BluetoothMAC”: “XXXXXXX”,
“WiFiMAC”: “XXXXXXXXXXX”,
“VoiceRoamingEnabled”: “0”,
“DataRoamingEnabled”: “0”,
“PersonalHotspotEnabled”: “0”
}
}
]
}
I tried mapping the list to a Variable but even with exactly the same properties in the pageVariable Composer tells me it’s not compatible. I tried it with the formula
MAP(data.mydata, {pageVariable: item.data.mydata})
but that doesn’t work either.
The solutions seem to be just in front of me, but I just don’t see it.
Thanks for your help!
Philipp