I have an array [1, 1, 2, 3, 3, 3, 7, 7, 7, 7 etc..] stored in var1. How can I count the occurrences of 1, 2, 3, and 7 in this array in Copilot Studio, considering that the numbers may vary and change dynamically?
But I think it could be hard to then set variables with counts for each number, because you don't have any loop action, apart from ForAll. I suggest you to use PA flow to count and return the results.
In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.