Tarique,
As Chris said, what you want to accomplish is not possible with a token. I just had to do this in one of my projects and my approach was as follows:
- On the email template, I added a boolean attribute entitled AddStudentListToEmail
- In the microflow that generates the email, I check that boolean attribute, if its true, I
- Modify the email body via a loop, adding one line to the email for each student
Note that this modification can take place either before or after token replacement. Also, I believe I needed to add an html break code after each line so that each student would be on a different line.
Hope that helps,
Mike
That is not possible in a direct way with a token that represents a list, but you can fill a text attribute in a microflow (e.g. 'Peter, John and Michaeal are in your class') and pass that as a single token.