Monday, July 15, 2013

Infopath: Get related list item ID from Related Content field



Hi everyone,

There is a simple way how to get related list item ID from Related Content field. Inside Related Content field is stored URL to the related item (in the case of the task). The URL should similar like this: http://site/Lists/listName/DispForm.aspx?ID=33

Then you can use substring-after(WorkflowLink, "=") to get current list item ID
You can find the original thread here: http://social.msdn.microsoft.com/Forums/en-US/59d44915-abd9-484a-8687-926c94cc869b/display-current-item-column-from-list-workflow-in-task-notification-approval-infopath-form

No comments:

Post a Comment