I want to start my Visual Studio 2010 sequential workflow automatically after adding a a new form (or any document for that matter) to a form library.
This works flawlessly as long as I don't have an initiation form. As soon as I have an initiation form, the workflow fails. When I start it manually, the initiation form is displayed and the workflow goes about doing its things.
Is there any way to call the workflow initiation form of a specific workflow after new item generation (in particular an InfoPath form)?
So basically I want this:
- User enters information on InfoPath form
- Submits said form to a library
- Workflow X is started and user is asked for initiation data
Yes, I could put the initiation data also on the first InfoPath form, from step 1 - but this is not the solution I am looking for.
The error I am receiving is
There is an error in the XML document (0,0) right after trying to Deserialize the
workflowProperties.InitiationData. Why this error? Because I did not enter any InitiationData! I would do so on the Initiation Form, which wasn't shown after creating a new item. Hence the Initiation Form XML is null, hence the error.