Solved

Open Outlook from InfoPath and attach PDF

Posted on 2011-03-11
1
623 Views
Last Modified: 2012-05-11
Experts,

I have an Infopath from that is published to a Sharepoint site. The form is filled out by the employee and after completing it they click a button that exports it to a PDF. The PDF is saved to another document library on sharepoint and all done using VB Script.

The forms (PDF format) are then accessed by another employee which then attaches it an email template and sends it off to our customers.

I am trying to eliminate this step. At the moment the employee converts the InfoPath form to a PDF, I would like to:
  1) Create a button that opens an Outlook Template stored in Sharepoint
  2) Attaches the newly created PDF

Currently I have a field in the Infopath form that uses the concat function to create the file name, extension, and path for the PDF. Simply put, I need to take the value from that fields to locate the PDF to attach all using VB. Any help would be much appreciated. Thank you
0
Comment
Question by:spaced45
1 Comment
 
LVL 28

Accepted Solution

by:
clayfox earned 500 total points
ID: 35116034
First, you can create a submit data connection to email.

This can be accessed to create the message.

Then you can create a field which can store the PDF.  With code you can automate the attached file control to embed the PDF within the form. Using the path to the SP Library and the file name to get the exact file you want.

Then it is just a matter of the logic and process.

I assume these are client based forms, but with the standard email functionality, you can set the subject and intro or I have create a specific view before which becomes the body. Since you want to attach the PDF rather than the XML this is probably a better way to go.  Also the user will have to approve the send, which Outlook requires because of Spam.  Otherwise you would need code and SMTP to get around this.

Good Luck
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now