User-defined workflows have been disabled by the SharePoint Administrator. User-defined workflows will be unable to run.DescriptionIn this article you will see how to resolve the error "User-Defined workflows have been disabled by the SharePoint Administrator. User Defined workflows will be unable to run."ErrorWhen I was trying to create a simple workflow using the SharePoint Designer, I was getting the following error:ReasonThis is because SharePoint Administrators have disabled the SharePoint Designer workflows so that users will not be able to create custom SharePoint Designer workflows. How to resolve:Through Central Administration
Programmatically Enable SharePoint Designer workflowsnamespace Console{ using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.SharePoint; using Microsoft.SharePoint.Administration;
class Program { static void Main(string[] args) { SPWebApplication webApp = SPWebApplication.Lookup(new Uri("http://serverName/"));
//// Disabling the SharePoint Designer workflows for the web application webApp.UserDefinedWorkflowsEnabled = false; //// Update the Changes webApp.Update(); } }}Reference: http://www.c-sharpcorner.com/uploadfile/anavijai/sharepoint-workflow-settings-for-sharepoint-2010-web-application/ SummaryThus in this article you have seen how to resolve the error "User-Defined workflows have been disabled by the SharePoint Administrator. User Defined workflows will be unable to run." Or how to enable or disable the SharePoint Designer workflows.
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: