Delegate SharePoint Workflow Task

I had this requirement to apply delegation on SharePoint workflow task, as we have in Project Server. There is no such feature for SharePoint workflow taks. The simple way to achieve this, is to change the “Assigned To” to the new user and it will be assigned to the new user and send email just like a normal workflow.


Redirecting User to Approval Edit Form Automatically

Add following html in a content editor of workflow task display form. This will redirect user to editable approval form.


<script src="/PWA/SiteAssets/RedirectToEditForm.js"></script>

the javascript file RedirectToEditForm.js should have the following code:

    var origUrl = window.location.toString();
    var editUrl = origUrl.replace("DispForm","EditForm");
    window.location = editUrl;

Note: Do not add Script tags in the file, just add code in file.

Uninstalling Workflow Manager 1.0

I followed the below step in order to delete Workflow Manager.

  • Leave the farm
    • Launch the Workflow Manager Configuration Wizard as administrator. Only this one option will be listed.
    • Copy the current configuration for later reference.
  • Uninstall Software
    • Workflow Manager 1.0
    • Workflow Manager 1.0 Client
    • Windows Fabric
    • Service Bus 1.0
  • Remove Databases
    • SbMessageContainer01
    • SbGateway
    • SbManagement
    • WFInstanceManagement
    • WFManagement
    • WFResourceManagement
  • Remove Service Application
    • Workflow Service Application Proxy
  • Remove application folder
    • Delete folder C:\Program Data\Windows Fabric
    • Delete folder C:\Program Files\Service Bus
    • Delete folder C:\Program Files\WIndows Fabric
    • Delete folder C:\Program Files\Workflow Manager

Note: If you’re recovering your workflow environment, your existing workflow won’t be deleted as they reside in content db. Once you setup Workflow Manager, check if you can see “SharePoint 2013 Workflow” and “Project Server 2013 Workflow” options in SharePoint Designer (I had to connect Workflow Application Service with the Web Application). Only then your existing workflow will show up under workflows in SPD.


SharePoint 2013 Designer Workflow Error Access Denied

Starting up a list workflow, was throwing following error.


RequestorId: 675358e8-c91d-0f3a-ebaa-d663a9a1202d. Details: System.ApplicationException: HTTP 401 {“error”:{“code”:”-2147024891, System.UnauthorizedAccessException”,”message”:{“lang”:”en-US”,”value”:”Access denied. You do not have permission to perform this action or access this resource.”}}} {“Transfer-Encoding”:[“chunked”],”X-SharePointHealthScore”:[“0″],”SPRequestGuid”:[“6359f5a3-808a-4144-ace2-0fdff207809f”],”request-id”:[“6359f5a3-808a-4144-ace2-0fdff207809f”],”X-FRAME-OPTIONS”:[“SAMEORIGIN”],”MicrosoftSharePointTeamServices”:[“″],”X-Content-Type-Options”:[“nosniff”],”X-MS-InvokeApp”:[“1; RequireReadOnly”],”Cache-Control”:[“max-age=0, private”],”Date”:[“Sun, 30 Nov 2014 08:08:36 GMT”],”Server”:[“Microsoft-IIS\/8.0″],”WWW-Authenticate”:[“NTLM”],”X-AspNet-Version”:[“4.0.30319″],”X-Powered-By”:[“ASP.NET”]} at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Resolution 1:

PS C:\Users\exceed.epm> Get-SPTimerJob “RefreshMetadataFeed” | Start-SPTimerJob

Resolution 2 (In my case it worked):

Activate site feature “Workflows can use app permissions

Site actions > Site Settings > Site features > Workflows can use app permission

[Updates 10-08-2016]

Resolution 3:

This time above two resolution didn’t work. Had to install CU3 of Workflow Manager and Client.