Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Here I want Infopath2010 form will appear when I want to start manual Sequential Workflow in visual studio2010.For that I am using Initiation Form(created in Infopath2010) Process. DO anybody have any idea What is the process to attach Infopath form with sequential workflow in visual studio2010

share|improve this question

1 Answer 1

Recently I've wrote step-by-step tutorial how to do this. Check it out here and feel free to ask any questions.

share|improve this answer
    
Thanx Kai.....But I am facing System.ArgumentNullException Do you have any Idea How canI solve this –  ashish joshi Mar 27 '12 at 8:46
    
@ashishjoshi, please provide more details about where and how this exception is occurred, stack trace if presented –  Kai Mar 27 '12 at 9:03
    
public static SPWorkflowActivationProperties workflowProperties = new SPWorkflowActivationProperties(); static XmlSerializer serializer = new XmlSerializer(typeof(AssociationParameters)); static XmlTextReader reader = new XmlTextReader(new System.IO.StringReader(workflowProperties.InitiationData)); AssociationParameters initform = (AssociationParameters)serializer.Deserialize(reader); Here at Stringreader it gives Excepti –  ashish joshi Mar 27 '12 at 9:09
    
workflowProperties.InitiationData is null for you. Do initiation form appear, when you start workflow on item? Do you specify InstantiationUrl in elements.xml for workflow? When you associate your workflow to a list, checkbox "Start this workflow when a new item is created." should be unchecked. I've just verified my project with initiation form - I changed AssociationUrl to InstantiationUrl="_layouts/IniWrkflIP.aspx", replaced AssociationFormURN with InstantiationFormURN, added workflowProperties.InitiationData (instead of AssociationData) in code and all work fine. –  Kai Mar 27 '12 at 9:40
    
I did all the things Properly but It is given erro at the time I Build my sequential Workflow. –  ashish joshi Mar 27 '12 at 10:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.