title: Incorporating a workflow Initiation Infopath form in Visual Studio 2010 for Sharepoint 2010
body: <p>I am having issues trying to implement a workflow that pops up a infopath form when the workflow is activated. I followed the <a href="http://www.codeproject.com/Articles/195348/SharePoint-2010-State-Machine-Workflows-with-Custo" rel="nofollow">code project</a> tutorial which gives a great example on how to link forms to tasks, but I have not been able to find any examples that uses Infopath forms for initiation and associated forms.</p>
  
  <p>My current workflow elements.xml file looks like this after running the tutorial:</p>
  
  <pre><code>&lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    &lt;Workflow
       Name="DocReview - DocReview"
       Description="My SharePoint Workflow"
       Id="fdfd5e60-2210-4f67-9883-085090181816"
       CodeBesideClass="DocReview.Workflow1.Workflow1"
       CodeBesideAssembly="$assemblyname$"
       TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"&gt;
      &lt;Categories/&gt;
      &lt;AssociationData&gt;
        &lt;Data&gt;&lt;/Data&gt;
      &lt;/AssociationData&gt;
      &lt;MetaData&gt;
        &lt;AssociationCategories&gt;List&lt;/AssociationCategories&gt;
          &lt;Task0_FormURN&gt;urn:schemas-microsoft-com:office:infopath:StartDocumentReview:-myXSD-2012-03-19T05-38-09&lt;/Task0_FormURN&gt;
        &lt;StatusPageUrl&gt;_layouts/WrkStat.aspx&lt;/StatusPageUrl&gt;
      &lt;/MetaData&gt;
    &lt;/Workflow&gt;
  &lt;/Elements&gt;
  </code></pre>
  
  <p>I tried adding a the Instantiation_FormURN and Association_FormURN elements in the elements.xml file using the same form but still cannot pop up the form on workflow activation. What m I missing?</p>