Paul Galvin's (old) SharePoint space [SharePoint

Just another WordPress.com site

Quick and Easy: Automatically Open InfoPath Form From SharePoint Designer Email

UPDATE: Madjur Ahuja points out this link from a newsgroup discussion: http://msdn2.microsoft.com/en-us/library/ms772417.aspx.  It’s pretty definitive.

===

We often want to embed hyperlinks to InfoPath forms in emails sent from SharePoint Designer workflows.  When users receive these emails, they can click on the link from the email and go directly to the InfoPath form.

This monster URL construction works for me:

http://server/sites/departments/Technical%20Services/InformationTechnology/HelpDesk/_layouts/FormServer.aspx?XmlLocation=/sites/departments/Technical%20Services/InformationTechnology/HelpDesk/REC%20REM%20RED%20Forms/REC2007-12-18T11_33_48.xml&Source=http%3A%2F%2Fserver%2Ecorp%2Edomain%2Ecom%2Fsites%2Fdepartments%2FTechnical%2520Services%2FInformationTechnology%2FHelpDesk%2FREC%2520REM%2520RED%2520Forms%2FForms%2FAllItems%2Easpx&DefaultItemOpen=1

 

Replace the bolded red text with the name of the form, as shown in the following screenshot:

Note that there is a lot of hard-coded path in that URL, as well as a URL-encoded component.  If this is too hard to translate to your specific situation, try turning on alerts for the form library.  Post a form and when you get the email, view the source of the email and you’ll see everything you need to include.

Astute readers may notice that the above email body also shows a link that directly accesses the task via a filtered view.  I plan to explain that in greater detail in a future post. 

</end>

Technorati Tags:
Advertisements

One response to “Quick and Easy: Automatically Open InfoPath Form From SharePoint Designer Email

  1. Ashish May 9, 2008 at 10:50 am

    Hello
     
    How Can I format datetime field to date only field in emailbody?
     
    How can use if then else statement in email body? Let say for an boolean field value is \’True\’, I want to display \’Yes\’ otherwise \’No\’. Is this posible?
     
    As I am using FBA, so when I use createdby field, it is also showing aspsqlnetprovide name alongwith username, how can i remove this?
     
    Thanks in advance, please reply asap.
     
    Ashish

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: