Response mapping with REST API calls

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2015 03:27 AM
Pl suggest how to retrieve values from within the 'data' array.(given below)
Im able to view the 'size' value in a later form using 'display value' element.
But when i use method to display value of data[array_index].id or data[array_index].firstname the next task in the process does not show up in 'my tasks'
This is response after hitting the REST API "api/enterprise/users"
Response entity: {
"size": 4,
"total": 4,
"start": 0,
"data": [
{
"id": 1,
"firstName": null,
"lastName": "Administrator",
"email": "admin@app.activiti.com"
},
{
"id": 2,
"firstName": "a",
"lastName": "a",
"email": "a@a"
},
{
"id": 3,
"firstName": "b",
"lastName": "b",
"email": "b@b"
}
]
}
This is the response mapping used in REST CALL TASK:
****************************************************
CHANGE VALUE FOR RESPONSE MAPPING:
JSON PROPERTY | VARIABLE
—————————————
data[0].id | idVar
size | sizeVar
—————————————
****************************************************
Im able to view the 'size' value in a later form using 'display value' element.
But when i use method to display value of data[array_index].id or data[array_index].firstname the next task in the process does not show up in 'my tasks'
This is response after hitting the REST API "api/enterprise/users"
Response entity: {
"size": 4,
"total": 4,
"start": 0,
"data": [
{
"id": 1,
"firstName": null,
"lastName": "Administrator",
"email": "admin@app.activiti.com"
},
{
"id": 2,
"firstName": "a",
"lastName": "a",
"email": "a@a"
},
{
"id": 3,
"firstName": "b",
"lastName": "b",
"email": "b@b"
}
]
}
This is the response mapping used in REST CALL TASK:
****************************************************
CHANGE VALUE FOR RESPONSE MAPPING:
JSON PROPERTY | VARIABLE
—————————————
data[0].id | idVar
size | sizeVar
—————————————
****************************************************
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-06-2015 06:00 AM
Hi,
Accessing the array elements in a REST response is currently not supported;
This issue is in our backlog but it's not yet planned.
Accessing the array elements in a REST response is currently not supported;
This issue is in our backlog but it's not yet planned.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2017 06:25 PM
Hi,
Is above issue for accessing the array elements in rest response fixed in alfresco enterprise addition v1.5.3?
Please confirm.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-12-2018 09:14 AM
Hello,
Has this issue with JSON arrays been resolved?
Thanks
