Forum Discussion
cmegow
Jul 21, 2024Copper Contributor
Array Filter not working as expected
This flow works with one glitch. If there were two schools with the same date (which is probable) then, the violations for each school are being included in the email for both schools.
Here is the code for my filter:
{
"type": "Query",
"inputs": {
"from": "@outputs('Get_items_-_All_Violations_from_30_days_ago')?['body/value']",
"where": "@equals(items('Apply_to_each_-_for_each_\"Get_Item\"')?['School'],variables('Unique School'))"
},
"runAfter": {
"Set_variable_-_Unique_School": [
"Succeeded"
]
},
"metadata": {
"operationMetadataId": "86fb4366-e227-42eb-bf2b-07d9219c316d"
}
}
The string variable at the point where the filter is occurring has only one school in the string and I've been able to confirm things on the data side. The data is good.
Thanks for any help that can be offered.
No RepliesBe the first to reply