none
Check "Update the approval status after the workflow is completed (use this workflow to control content approval" in work flow by code RRS feed

  • Question

  • Hello ,

     I create a work flow by code . I need to  check "Update the approval status after the workflow is completed (use this workflow to control content approval" . How Can I checked it by code

    SPWorkflowTemplate wflTemplate = site.RootWeb.WorkflowTemplates.GetTemplateByName("Publishing approval", System.Globalization.CultureInfo.CurrentCulture);
    wflTemplate.AllowDefaultContentApproval = true;

    SPWorkflowAssociation wflAss = SPWorkflowAssociation.CreateListAssociation(wflTemplate, "Submit for approval", workFlowTasks, historyList);
    wflAss.AutoStartChange = false;
    wflAss.AutoStartCreate = false;
     wflAss.AllowManual = true; 

    ASk

    Sunday, May 25, 2014 4:16 PM

Answers