My array looks like this:
[
{
"@odata.etag": "W/\"JzEtVGFzayAgQEBAQEBAQEBAQEBAQEBARCc=\"",
"planId": "johCFoq4nEyhOcbgjLkzN5YAFYWU",
"bucketId": "uoRC3WMr70WkaUCOGWZ69JYAJEHv",
"title": "Reception, validation and account of local suppliers invoices",
"orderHint": "8585975908743310360",
"assigneePriority": "",
"percentComplete": 0,
"createdDateTime": "2020-10-30T00:00:11.1465447Z",
"dueDateTime": "2020-10-30T07:00:10Z",
"hasDescription": false,
"previewType": "automatic",
"referenceCount": 0,
"checklistItemCount": 0,
"activeChecklistItemCount": 0,
"id": "vd9Lt6swoU6yUsBenCKW9ZYAFmAE",
"createdBy": {
"user": {
"id": "25e6bf64-416e-45c2-8350-9f747027d3c5"
}
},
"appliedCategories": {},
"assignments": {
"9c950320-9981-45a3-b31e-2cd31d69d51a": {
"@odata.type": "#microsoft.graph.plannerAssignment",
"assignedDateTime": "2020-10-30T00:00:11.1465447Z",
"orderHint": "8585975909344403874Pg",
"assignedBy": {
"user": {
"displayName": null,
"id": "25e6bf64-416e-45c2-8350-9f747027d3c5"
}
}
}
},
In order to get the title, the following expression works well:
items('Apply_to_each')?['title']
But I want the user whose taks was assigned to. So, in the JSON this is under the "assignements" element, as a sub-element of the main object. Thus:
items('Apply_to_each')?['assignements']
Returns an empty string.