I'm trying to build an automate feature where an email comes into a shared inbox, and then what happens is the system takes the email from that shared inbox and essentially forwards it to a random person from a list of a group chat in teams. I get to creating an array and that makes sense, and then I build a compose function to get it to choose someone at random, but the issue is, it never gets past the array function where it chooses someone at random and i've been stuck here for hours.
This is basically how the Array should look in my view: email comes to shared inbox > get list of team members > create array and a compose function to get someone at random > forward that email to their inbox. But again, i can not get past the array function to pick someone at random and then move forward. Any help would be appreciated.