You want to send a mail to multiple users with attachment to InfoPath form when it is submitted to form library.
For this you have to create designer workflow which sends mail to multiple users when form is submitted.
Steps to achieve this:
Design a browser compatible form template and publish to SharePoint form library. ]
Now in SharePoint, configure the form template to Display InfoPath form as web page.
Open the SharePoint site in Designer.
Go to File and select New and then click workflow
Type the name for workflow on the workflow designer and select you r form library as SharePoint list to attach your workflow. Select Automatically start this workflow when new item is created. and click Next.
Now on the Workflow designer,click Actions and then select Send E-Mail from the context menu.,the action will be added to step1
E-Mail this message
Click this message in E-Mail this message action.
On the Define E-Mail Message dialog box, enter valid e-mail id’s in the To Field, and also enter the Subject in Subject field.
Now go to SharePoint form library where your InfoPath forms are stored. Click on existing InfoPath form to open in the browser. Copy the URL of InfoPath form, the URL would be like this.
http://servername/sitename/_layouts/FormServer.aspx?XmlLocation=/SiteName/libraryName/Form1.xml&Source=http%3A%2F%2FServerName%2FsiteName%2FLibraryName%2Fforms%2FallItems%2Easpx&DefaultItemOpen=1
Now on the Define e-mail message box, paste the URL in the e mail’s body field.
Highlight the URl that comes after the Xmllocation parameter.
/SiteName/libraryName/Form1.xml
And click Add lookup to Body.
On the Define Workflow lookup Dailog box ,select Server Relative URLfrom the Field dropdown list box. And click ok
Then the link should be like this.
http://servername/sitename/_layouts/FormServer.aspx?XmlLocation=[%LibraryName:ServerRelative URL%]&Source=http%3A%2F%2FServerName%2FsiteName %2FLibraryName%2Fforms%2FallItems%2Easpx&DefaultItemOpen=1
On the Define E-Mail Message dialog box,click OK.
On the workflow Designer ,click Finish.
Now onwards whenever you create new InfoPath form and save it to form library, it will send e mail to the users you specified .
Happy Sharepointing.
No comments:
Post a Comment