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.

p24=abc%40123.com p2_lkid=0034000101Qph2lAAB&p3_lkid=a0e290000104CM2AAM& 

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

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:

p24=abc%40123.com p2_lkid=0034000001Qph2lAAB&p3_lkid=a0e290000004CM2AAM& 

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

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.