I want to send an email from a Skuid table to multiple selected people at the same time.
Tried hacking the url to include multiple email addresses using a mass action button but the email addresses are not being passed. I have the semi colon in there because that is how multiple bcc’s are separated within SF.
Has anyone successfully configured the URL to send multiple emails?
URL:
/_ui/core/email/author/EmailAuthor?rtype=003&p2_lkid=noreply@abc.com&p5={{{Email}}};
Page 1 / 1
How are you getting the multiple email addresses together into one “Email” field?
I thought through the mass action. I have the email field in the redirect url and the model so I thought it would pull it through the mass action the way it does with a row action. Is that not the case?
Thanks for the question Rob, it made me think and realize i was going about it the wrong way. I had to go the way of a snippet for this to work since the email addresses need to be in a colon-separated string. I re-purposed the snippet from this post and altered to suit my needs.
Final result:
// Get the Email of the selected items as an Array<br />var emailArray = skuid.$.map(arguments[0].list.getSelectedItems(),function(item){ <br /><br /> return item.row.Email; <br /><br />});<br /><br />// Convert this array to a colon-separated String<br /><br />var emailString = emailArray.join(';');<br /><br />// Redirect to Send Email page,<br />// passing in the Contact Email string<br />window.location.href = "/_ui/core/email/author/EmailAuthor?rtype=003" + "&p24=" + "noreply@abc.com" + "&p5=" + emailString;
Glad you got it working.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.