I'm trying to create a loop, but I cant seem to get it to work. I filter a sharepoint list and have the below output as a result.
Next I want to loop over the 2 Ad groups and get their Object ID back. For some reason I cannot seem to get the correct reference.
I tried multiple things, this is the last one I tried:
What expressions do I need to retreive the AD group name?
{
"body": [
{
"@odata.etag": "\"4\"",
"ItemInternalId": "1",
"ID": 1,
"Title": "Access Rights",
"ReportName": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 4,
"Value": "WOL Campaign Report"
},
"Environment#Id": 1,
"Azure_x0020_AD_x0020_Group": "PT_PBI_TST_AR_WOLCAMPAIGN_APPViewer",
"Modified": "2022-01-14T16:30:47Z",
"Created": "2022-01-13T23:56:02Z",
"Author": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
"Claims": "",
"DisplayName": "",
"Email": "",
"Picture": ""
},
"Author#Claims": "",
"Editor": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
"Claims": "",
"DisplayName": "",
"Email": "",
"Picture": ""
}
},
{
"@odata.etag": "\"1\"",
"ItemInternalId": "4",
"ID": 4,
"Title": "66",
"ReportName": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 4,
"Value": "WOL Campaign Report"
},
"Environment#Id": 1,
"Azure_x0020_AD_x0020_Group": "PT_PBI_TST_RLS_WOLCAMPAIGN_AdminViewer",
"Modified": "2022-01-14T16:32:00Z",
"Created": "2022-01-14T16:32:00Z",
"Author": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
"Claims": "",
"DisplayName": "",
"Email": "",
"Picture": ""
},
"Author#Claims": "",
"Editor": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
"Claims": "",
"DisplayName": "",
"Email": "",
"Picture": ""
}
}
]
}