FAQs / Envision |
To include an InfoPath based task link in an email message so that a task participant can open the InfoPath form directly from the email message rather than having to open the form from their SharePoint task list.
Built-in macros/custom attributes and URL parameters can be used to construct the email message with the task link.
The following URL format may be included in an email message. Clicking this URL will cause the InfoPath form associated with the given task ID to open as if it were opened by clicking on the corresponding link in the user's SharePoint task list:
URL Path to the SharePoint page that includes the Task List Web Part/?LaunchInfoPath=yes&WID=${TaskID}
For example, if the task list web part is included on the SharePoint Portal home page, you may use:
{SPServer}/?LaunchInfoPath=yes&WID=${TaskID}
-OR-
http://virtual8080/?LaunchInfoPath=yes&WID=${TaskID}
If the task list web part is included on the site's main page, you may use:
${SPServer}${SitePath}/?LaunchInfoPath=yes&WID=${TaskID}
The reason this URL format works is because the Task List Web Part specifically looks for URL parameters called "LaunchInfoPath" and "WID" (meaning WorkItemID). When it finds these URL parameters, it automatically launches the InfoPath form associated with the task ID in the same way that is done when the user clicks on the link in the task list.