Thursday, February 10, 2011

Steps to deploy a custom InfoPath task form into SharePoint 2010

Steps to deploy a custom InfoPath task form into SharePoint 2010 1. In workflowname.cs(Workflow1 in example above): a. Add method (Set on task invoke property) private void createTask1_MethodInvoking(object sender, EventArgs e) { … this.createTask1_TaskProperties1.TaskType = 0; … } 2. Create a module to save the published InfoPath form inside the workflow Element, in our case it is . a. Save or copy the published form in the module. b. In elements.xml below the forms module: i. Auto Generated entries, if not add yourself 3. In Elements file below the Workflow Element a. List urn:schemas-microsoft-com:office:infopath:Task1:-myXSD-2011-02-08T08-33-39 _layouts/WrkStat.aspx b. N = task Id (Refer #1 a. Above). 4. Select the workflow node and open properties(F4) a. Paste the following entries i. Assembly = “Microsoft.Office.Workflow.Feature, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c” ii. ClassName = “Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver” (Refer to snapshot for more details) 5. Have a look at the main feature manifest file. a. Add under properties node(if missing): 6. You are required to change the security setting of the InfoPath form. Follow the steps below. a. Click File b. Click Form Options c. Select Security and Trust i. Deselect Automatically determine security level(recommended) ii. Select Domain 7. Time to publish the form a. Click File b. Select Publish c. Select Network Location d. Click browse and enter location on your machine where you want to publish the form and mention a name in the form template name field below and click Next.   e. Remember to clear the field and click Next f. Click Publish and the form is published and ready for use.

1 comment:

  1. Good article!!! but you don't explain clearly, we can't execute exactly. please provide more with step by step. Thanks

    ReplyDelete