2

I need to attach multiple attachment through url when doing Send An Email. When I press a custom button through vfpage, it redirects to url from there I can send email with attachment. I need to send multiple Attachment. But that url get only one Attchment Id. so that only one attchment is getting select with that email.

_ui/core/email/author/EmailAuthor?https://parallels--
full.cs19.my.salesforce.com/_ui/core/email/author/EmailAuthor?
p24=abc%40123.com p2_lkid=0034000101Qph2lAAB&p3_lkid=a0e290000104CM2AAM& 
p5=rahshriv%40gmail.com%3BtestEmail%3Dtest.com%40example.com%3BtestEmail%3Dtest.com%40example.com%3BtestEmail%3Dtest.com%40example.com 
&doc_id=015290000008u5fAAA& 
retURL=80129000000CaTmAAK&rtype=003&template_id=00X40000001qoteEAA

at doc_id I need to set more than one Id. Is this Possible. How to acheive this?Please Help.

  • Where did you get the value for doc_id? What is this value? – Ray Dehler Jul 25 '15 at 18:02
0

The only mechanism seen for supplying multiple values for the same key in Salesforce URL Hacking is for multi select picklists, whereby you simply specify the key again.

Try this:

_ui/core/email/author/EmailAuthor?https://parallels--
full.cs19.my.salesforce.com/_ui/core/email/author/EmailAuthor?
p24=abc%40123.com p2_lkid=0034000001Qph2lAAB&p3_lkid=a0e290000004CM2AAM& 
p5=rahshriv%40gmail.com%3Bkanderson%3Dparallels.com%40example.com%3Bmdinall
o%3Dparallels.com%40example.com%3Bdjenkins%3Dparallels.com%40example.com 
&doc_id=015290000008u5fAAA&doc_id={somethingelse}&
retURL=80129000000CaTmAAK&rtype=003&template_id=00X40000001qoteEAA

If that doesn't work, it's not possible on the URL.

  • I tried it but not working, is there another way to achieve it? – RAHUL SRIVASTAVA Jul 26 '15 at 16:44
  • Sorry, not unless you create a custom VF page to send emails. – Ray Dehler Jul 26 '15 at 19:23
0

Not sure if this will help or not but, Have you considered using feed based layout/ feed based email which allows to add multiple attachment in email as well as you can drag and drop attachment in email body and those will be attached with email. Also many more features like adding image in email body, adding email address like gmail/outlook client by simply typing their name and more.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.