I am using a Gets items from a SharePoint list action and then trying to use Filter Array action to create a subset. For some reason the following Filter Array this is not generating output from the get items output shown below:
Filter Array action:
{
"type": "Query",
"inputs": {
"from": "@outputs('Get_items_from_DBR_Resources_SP_List')?['body/value']",
"where": "@equals(item()?['field_2'],'Filters')"
},
"runAfter": {
"Get_items_from_DBR_Resources_SP_List": [
"Succeeded"
]
}
}
A portion of the Get Items output:
{
"@odata.etag": "\"1\"",
"ItemInternalId": "1",
"ID": 1,
"Title": "Open High & Critical Incidents",
"field_1": "Active incidents created in the past seven days that are classified as Critical or High priority.",
"field_2": "Filters",
"field_3": "Item",
"field_4": "personal/xxxxx_xxxx_someplace.org/Lists/DBR_Resources",
"Modified": "2025-01-29T13:34:01Z",
"Created": "2025-01-29T13:34:01Z",
"Author": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
"Claims": "i:0#.f|membership|xxxxx_xxxx_someplace.org",
"DisplayName": "Xxxxx, Xxxxx X",
"Email": "xxxxx_xxxx_someplace.org",
"Picture": "https://xxxxx.sharepoint.com/sites/XXXXX/_layouts/15/UserPhoto.aspx?Size=L&AccountName=xxxxx_xxxx_someplace.org",
"Department": "Xxxxxx",
"JobTitle": "XXXXXX"
},
"Author#Claims": "i:0#.f|membership|xxxxx_xxxx_someplace.org",
"Editor":
I don't understand why it is not working. I did a compose\condition action to debug, and it worked fine.
{
"type": "If",
"expression": {
"and": [
{
"equals": [
"@outputs('Compose_3')",
"Filters"
]
}
]
},
"actions": {
"Compose_4": {
"type": "Compose",
"inputs": "It is true"
}
},
"else": {
"actions": {
"Compose_5": {
"type": "Compose",
"inputs": "It is not true"
}
Any suggestions will be much appreciated.