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

Hi Louis, Follow this tutorial, How to add Marketo Send Email mass action to a Skuid table, but for the “Snippet Body”, use this instead (I’ve just adapted it to use the Drawloop URL:

// Get the Ids of the selected items as an Array var idsArray = skuid.$.map(arguments[0].list.getSelectedItems(),function(item){ return item.row.Id; }); // Convert this array to a comma-separated String var idsString = idsArray.join(','); // Redirect to Drawloop = "/apex/loop__masslooplus?contactfield=Primary_Contact__c&sessionId=" + skuid.utils.userInfo.sessionId + "&retURL=" + encodeURI( + "&recordIds="+idsString;