Solved

Open Outlook from InfoPath and attach PDF

Posted on 2011-03-11
1
628 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
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…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

733 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