Friday, March 22, 2013

Infopath and lookup columns in workflows

When creating items using workflows its important that the values are exactly matchable. For instance, if the value in the list is a lookup value from another list, like employes, its important that the value that gets sent is the actual ID of the employee.

Its gets more complex when using infopath to edit a workflow forms. Here we got another layer that needs to be exactly matched. In this instance we needed to use another lookupfield in the actual infopathform and pass that form variable to the workflow.

When getting values to a dropdown-list from a external datasource, like a sharepointlist, the default behaviour is that value is the same as display name. When this value needs to match to another lookupfield the value-field needs to be changed to ID. Otherwise the workflow will just die.


No comments: