Solved

Open Outlook from InfoPath and attach PDF

Posted on 2011-03-11
1
619 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 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

11 Experts available now in Live!

Get 1:1 Help Now