Avatar

Level 2

Thanks David. I was able to add a function groupConcat() but struggling to put this into practice by leveraging the function inside of the .js. Is there an easier way to iterate through & group the records together using one of the built-in jsapi functions? In the end, I just need to send a single email to Manager Id1 listing each of their associate emails in some way. I'm probably overcomplicating it. 

Basically my table is something like this:
Record Id      |      Manager Id   |     Associate Email
1                    |              1           |       email1@adobe.com
2                    |               1          |       email2@adobe.com
3                    |               2          |       email3@adobe.com 

 

I want to group by Manager Id to output this:
Record Id      |      Manager Id   |     Associate Email
1                    |              1           |       email1@adobe.com, email2@adobe.com
3                    |               2          |       email3@adobe.com