In this article I will show you how you can create a hyperlink through which you can open a published InfoPath form from an email, triggered by SharePoint Designer 2010 Workflow.
In SP Designer Workflow, select "Set Variable Workflow" action and set the variable to the string specified in the below first image.
Text reference: First select [%Workflow Context:Current Site URL%] by clicking "Add or Change Lookup" button and select Data Source: Workflow Context; Field from source: Current Site URL, then same string as it is till Cases/, then select Current Item:Title, then write "&Source", then again [%Workflow Context:Current Site URL%] and finally write or copy the string "/Cases/Forms/AllItems.aspx&DefaultItemOpen=1"
In the second image, you can see there a link "here", by clicking this click an active InfoPath form will be opened in the web browser. [Just confirm that your InfoPath form is web browser enabled form].
You can include this "here" link by clicking the small icon next to "Automatic".
Text reference: First select [%Workflow Context:Current Site URL%] by clicking "Add or Change Lookup" button and select Data Source: Workflow Context; Field from source: Current Site URL, then same string as it is till Cases/, then select Current Item:Title, then write "&Source", then again [%Workflow Context:Current Site URL%] and finally write or copy the string "/Cases/Forms/AllItems.aspx&DefaultItemOpen=1"
In the second image, you can see there a link "here", by clicking this click an active InfoPath form will be opened in the web browser. [Just confirm that your InfoPath form is web browser enabled form].
You can include this "here" link by clicking the small icon next to "Automatic".
Cheers !
Hope this small piece helps you...
2 comments:
I have used this method and it works great! ...Except, I want the user to go to the form and update something. And, I want the form to know who is doing the updating. However, the user info isn't getting passed back to the infopath form when coming from the email. Do you have any ideas on how to fix this?
THANKS!
klink
Hi, Thanks for your comment. The most simplest method is to make use of "Modified By" field as given in this article for your reference:
http://www.bizsupportonline.net/blog/2011/05/display-who-last-modified-infopath-form-sharepoint-form-library/
The other approach could be to implement business logic or code-behind to track who updated the form and updating that information in custom list.
The third approach is to use getUserProfilebyName web service which you can use directly to display the current log-in user name on the form.
http://jerryleiarnold.wordpress.com/2012/06/19/infopath-get-current-user-information-2010/
Hope this helps.
Post a Comment