Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Open Outlook from InfoPath and attach PDF

Posted on 2011-03-11
1
Medium Priority
?
639 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 2000 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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

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

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…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

885 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