Mass Action - Inline javascript on related list for Drawloop mass mail merge?

Zach, I’m trying to get this to work as well, but it seems to fail on the first line of code. My list view is actually from an aggregate model - does that make a difference? I do have the Id of the records in the “groupings” section of the model.