As output of a call I have a (dynamic) number of collections returned. I want to set a variable with the amount of the rate or field with ID “262249198”. Is there a way to set this?
Important: per call, the amount of bundles/collections in the response can vary. So I cannot take a fixed position of the array but I need to look for the field ID I assume…
Hereby the output of the bundle after I iterated over the array of Fields returned. I need to have the “amount” in the values of field with ID “262249198”
[
{
"id": null,
"name": "Availability",
"visible": true,
"values": [],
"origin": "manual",
"fixed": true,
"kind": "date",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 1,
"__IMTLENGTH__": 10
},
{
"id": null,
"visible": true,
"values": [],
"origin": "manual",
"fixed": true,
"kind": "nationality",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 2,
"__IMTLENGTH__": 10
},
{
"id": null,
"name": "Salary",
"visible": true,
"values": [],
"origin": "manual",
"fixed": true,
"kind": "salary",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 3,
"__IMTLENGTH__": 10
},
{
"id": null,
"visible": true,
"values": [],
"options": {},
"origin": "manual",
"fixed": true,
"kind": "language_skill",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 4,
"__IMTLENGTH__": 10
},
{
"id": null,
"visible": true,
"values": [],
"origin": "manual",
"fixed": true,
"kind": "skills",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 5,
"__IMTLENGTH__": 10
},
{
"id": null,
"name": "Type",
"visible": true,
"values": [],
"options": {
"values": [
"Employee",
"Freelancer"
]
},
"origin": "manual",
"fixed": true,
"kind": "dropdown",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 6,
"__IMTLENGTH__": 10
},
{
"id": null,
"visible": true,
"values": [],
"origin": "manual",
"fixed": true,
"kind": "education",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 7,
"__IMTLENGTH__": 10
},
{
"id": null,
"visible": true,
"values": [],
"origin": "manual",
"fixed": true,
"kind": "experience",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 8,
"__IMTLENGTH__": 10
},
{
"id": 262249198,
"name": "Rate",
"visible": true,
"values": [
{
"amount": "500",
"currency": "EUR"
}
],
"origin": "manual",
"fixed": false,
"kind": "salary",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 9,
"__IMTLENGTH__": 10
},
{
"id": 262292631,
"name": "Salary",
"visible": true,
"values": [
{
"amount": "3000",
"currency": "EUR"
}
],
"origin": "manual",
"fixed": false,
"kind": "salary",
"is_anonymous": false,
"visibility": {
"level": "public",
"admin_ids": [],
"role_ids": []
},
"__IMTINDEX__": 10,
"__IMTLENGTH__": 10
}
]