Hi, Team,
I need to apply Powershell to add workflow, and I did try this one below:
$Template = $spWeb.WorkflowTemplates.GetTemplateByName("WFTmeplateName",$currentCulture);
but I find that the workflow I deployed to the web can't be read with above code, however, when I get in the list setting of the workflow adding page, I can see the deployed workflow, anybody has any suggestion for me to test it. or SharePoint 2013 is not possible to dispose the deployed workflow to this particular GetTemplateByName method.
thanks
Tao Tao