Obtaining approver of task process in 2013 workflow

Given a 2013 workflow where we start a task process, how can one get the user who approved the task process, assuming that the task process ending condition is one that requires the choice of one user (namely the first/specific response outcome types)?
My goal is to use this later in the workflow.

depending on the conditions of the task (one approver? multiple approvers? etc), what you can do is create a variable in the workflow, then drill into the task activity, and go into the task completion steps, and populate the workflow variable with the
task variable of last modified.
Scott Brickey
MCTS, MCPD, MCITP
www.sbrickey.com
Strategic Data Systems - for all your SharePoint needs

Similar Messages

  • How to use a pwa group in CREATE A TASK PROCESS in SPD 2013 for project server workflow approval process

    I am working on a Project Server 2013 workflow. I am creating this using Sharepoint Designer 2013. In this workflow I am using approval process at one stage. I have created a security group SalesManagers in PWA. I want to use this group for workflow approval
    process. I want all users of this group get approval tasks. 
    For this I used START A TASK PROCESS activity in the SP Designer. I clicked on
    this user and created task process. But here I could not find SalesManager group which I created in PWA. I was only able to find the users. I can also see
    Administrators for PWA . But couldnot find SalesManager or any other security group created in pwa.
    Can anyone suggest how I can get the security group created in pwa.

    NBDevelopment,
    I believe SPD only recognizes the SharePoint Groups and not the project server security groups.
    The Administrators for PWA, and few other groups like Project Managers for PWA etc., are synced SharePoint Groups with the security groups, which is why they show up in SPD.
    You could create a SharePoint Group for the Sales Managers group and use that in SPD.
    Cheers,
    Prasanna Adavi, Project MVP
    Blog:
      Podcast:
       Twitter:   
    LinkedIn:
      

  • Some fields are missing in Current Task - Designer Workflow Approval Task Process

    Hi All,
           I am using approval task process activity in designer workflow. When i go to the single task behaviour page, some fields are missing under Current Task Source.
    Some missing fields are :
    1. Assigned To
    2.External participants
    3. Form Urn
    I am trying to get the above fields but not available. What could be the issue?
    Puli Bala

    Hi Puli,
    I think your task list is corrupted, could you please try to associate your workflow to another task list in SharePoint Designer > Click Workflows on left navigation > Click to open your workflow > Under Settings section, select another task
    list and test.
    Thanks & Regards,
    Emir
    Emir Liu
    TechNet Community Support

  • Approval Workflow - What is Task Process

    I want to understand this Action in SharePoint 2010 workflow
    Start Task process on Current Item with these users
    What is the Task process? how do you define it?
    Thanks so much!
    Mayank

    http://office.microsoft.com/en-001/sharepoint-designer-help/use-the-task-process-editor-for-approval-workflows-HA101863538.aspx
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Designer-Workflow-2010-Task-Actions.aspx
    If you want someone to perform some action then you assign a task to them. like approvals, reviews or simply some information.
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • SharePoint 2013 workflow task gets canceled

    Just wanted to share my solution to a problem that I was having when creating a SharePoint 2013 Workflow that includes creating a task and assigning it to a group of people. After publishing the workflow and initiating it you get:
    Retrying last request. Next attempt scheduled in less than one minute.
    Microsoft.SharePoint.Client.ResourceNotFoundException: Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals
    An unhandled exception occurred during the execution of the workflow instance.
      Exception details: System.ApplicationException: HTTP 404 {"error":{"code":"-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
      "message":{"lang":"en-US","value":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals."},
      "innererror":{"message":"Cannot find resource for the request sp.utilities.utility.ExpandGroupsToPrincipals.",
      "type":"Microsoft.SharePoint.Client.ResourceNotFoundException","stacktrace":" at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPathRoot(Boolean mainRequestPath, EdmParserNode node, Boolean resourceEndpoint, MethodInformation& methodInfo)\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetObjectFromPath(Boolean mainRequestPath, String path, String pathForErrorMessage)\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process()\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest()\u000d\u000a at
      Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream inputStream, IList`1 pendingDisposableContainer)"}}
      } {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["46"]
      ,"SPRequestGuid":["624f66f8-a70c-81db-bf0d-c042443f5435"],"request-id":["624f66f8-a70c-81db-bf0d-c042443f5435"],
      "X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4569"],"X-Content-Type-Options":["nosniff"],
      "X-MS-InvokeApp":["1; RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Mon, 06 Apr 2015 22:17:23 GMT"],
      "Server":["Microsoft-IIS\/8.0"],"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)
    I was not able to find any answer anywhere, so my solution was:
    1. Simply upgrade SharePoint Server 2013 to the latest version which in turn updates Microsoft.Activities.Proxy.dll
    2. Clear the SharePoint Designer cache
      Workflow Error - Sharepoint Designer cannot display the item
      http://community.office365.com/en-us/f/154/t/74327.aspx
    I hope this is helpful to somebody
    Thanks

    Hi Amit,
    According to your description, my understanding is that you want to approve workflow task using web service in SharePoint 2013.
    For troubleshooting this issue, please provide the more detailed code.
    Here are some similar posts, please check if they are useful:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b999a417-dce3-4590-9173-89aea91f23a3/complete-workflow-after-approving-all-tasks?forum=sharepointdevelopment
    http://www.sharepointblog.in/2013/07/programmatically-approvereject-task-in.html
    http://aarebrot.net/blog/2011/10/how-sloppiness-and-spworkflowtask-altertask-could-inadvertantly-lock-your-workflow-task/
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Start a Task Process Action in SPD 2013 does not expand SharePoint Groups

    I created a site workflow in SPD 2013, and added a "start a task process".  I specified that the participants would be a group, the tasks would be created in parallel and "Assign a task to each member with groups" is checked. 
    I did check after the fact that "ExpandGroup" is "Yes" in the properties.
    However, when executed, the group gets assigned a task, not individual users within the group.
    I have seen other postings where others have the same issue, but no resolutions besides MS is investigating.  Is this some issue with my setup?  I have tried this in multiple environments with the same results.

    Hi  wangsy101,
    According  to your description, you create a workflow with “Start a task process” in SharePoint 2013 Designer, and the participants was a group, and you had make sure that the “ExpandGroup” was “Yes”. However, when executed, the workflow didn’t assign
    the task to individual users within the group.
    I reproduced the process, and in my testing , everything worked well.
    When you start the workflow and view the workflow, you will see the Assigned to field is the group. And when you open the related tasks, you will note that there are some new tasks related to individual users within the group. It  means that the “ExpandGroup”
    works correctly.
    If the issue still exists, please create an approval workflow  with SharePoint 2010 Designer platform, and set the same configuration to test.
    I hope this helps.
    Thanks,
    Wendy
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • SPD Workflow Task Process Action - Cancel on first rejection

    I have a task process action that sends a task to some managers (in paralell).
    I want this task process to end if any of these persons rejects the task. This was possible in SPD 2010 wf, but i can not find any reference on how to manage this in a 2013 style workflow. 

    Hi Mikael,
    You can Set the Completion Criteria to Wait for specific response, Required Outcome to Rejected,Default Outcome to Approved:
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Complete Workflow after approving all tasks

    Hello everybody,
    I'm face to a big problem with approval workflow OOTB. In my case, when one user from approvers approve his task. The workflow must be completed and we we din't need to wait other approvment. So, I developed an event receiver on Tasks Workflow list and I
    checked the first approvment. After, that I approve all other tasks by code. The problem, the status of workflow is still equal to "In progress" despite the ending of all tasks ! It is strange.
    This my code in event receiver of the list :
    public override void ItemUpdated(SPItemEventProperties properties)
    base.ItemUpdated(properties);
    SPList list = properties.List;
    SPWeb web = properties.Web;
    SPList createDocument = DMSUtility.GetListByUrl(web, DMSConstants.LIST_CreateDocument);
    string workflowItemId = string.Empty;
    string taskStatus = string.Empty;
    string taskID = string.Empty;
    string taskworkflowStatus = string.Empty;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(web.Site.ID))
    using (SPWeb webSecure = site.OpenWeb())
    if (list.RootFolder.Url.Equals((DMSConstants.LIST_CreateDocumentWorkflowTasks)))
    //Get Tasks item
    SPListItem itemTask = properties.ListItem;
    if (itemTask["WorkflowOutcome"] != null && itemTask["WorkflowItemId"] != null)
    workflowItemId = itemTask["WorkflowItemId"].ToString();
    taskStatus = itemTask["Status"].ToString();
    taskworkflowStatus = itemTask["WorkflowOutcome"].ToString();
    taskID = itemTask["ID"].ToString();
    if (taskworkflowStatus.Equals("Approved"))
    SPListItem item = createDocument.GetItemById(Convert.ToInt16(workflowItemId));
    // fetch workflow tasks
    SPWorkflowTaskCollection wfTasks = item.Tasks;
    int i=0;
    foreach (SPWorkflowTask task in wfTasks)
    // build a hashtable with the values to be changed to mark the task as complete
    if (task["ID"].ToString() != taskID && task["Status"].ToString()!="Completed")
    using (DisabledItemEventsScope scope = new DisabledItemEventsScope())
    task.Web.AllowUnsafeUpdates = true;
    task["Status"] = "Completed";
    task["WorkflowOutcome"] = "Approved";
    task[SPBuiltInFieldId.WorkflowVersion] = 1;
    task.SystemUpdate();
    Hashtable ht = new Hashtable();
    ht[SPBuiltInFieldId.Completed] = "TRUE";
    ht["Completed"] = "TRUE";
    ht[SPBuiltInFieldId.PercentComplete] = 1.0f;
    ht["PercentComplete"] = 1.0f;
    ht["Status"] = "Completed";
    ht[SPBuiltInFieldId.TaskStatus] = SPResource.GetString
    (new CultureInfo((int)task.Web.Language, false),
    Strings.WorkflowStatusCompleted, new object[0]);
    ht[SPBuiltInFieldId.WorkflowOutcome] = "Approved";
    ht["TaskStatus"] = "Approved";
    ht["FormData"] = SPWorkflowStatus.Completed;
    // alter the task using a trick to prevent task lock issue
    //AlterTask((task as SPListItem), ht, true, 5, 100);
    SPWorkflowTask.AlterTask((task as SPListItem), ht, true);
    while (!(bool)item.Tasks[i]["Completed"])
    Thread.Sleep(1000);
    task.Web.AllowUnsafeUpdates = false;
    task.Web.Update();
    i++;
    Do you have any idea ?
    Thanks.

    Hi,
    I have verified creating the simple approval workflow process.  Use the following two actions instead of setting workflow status to approved and stop the workflow.
    In this scenario, when one approver approves the task, others task is marked as cancel and his task will be marked as approved and list item will be marked as approved.
    And finally, one more thing, the approval process approvers must be in parallel
    Hope this will resolve your problem.
    Please mark as answered, if your problem resolved.

  • Workflow task process participants in serial order: how to make it stop at first rejection

    I have listed 3 participants as task process participants in serial order on my approval process. Currently even if the first one rejects, it moves on to the next one and then next no matter if they reject or approve it. The final outcome is rejected if
    anyone of them reject it.
    Is there a way to stop the workflow and mark the workflow status as rejected if anyone of the participants mark it as rejected?

    Hello All,
    i have read the article
    http://office.microsoft.com/en-us/sharepoint-designer-help/understand-approval-workflows-in-sharepoint-2010-HA101857172.aspx#_Toc264526218 but could not find anywhere a step by step process to End workflow on first rejection in Designer 2010.
    Can you please help me the steps in SP2010 for setting the Workflow Status as Rejected on the first Rejection itself?
    Thanks,
    Shubhangi
    $hubhangi

  • Get id to task in Sharepoint Designer workflow 2013

    Hi
    I am using 'Approval Process Action'. The workflow assigns approval task to several approvers. And it creats multiple tasks for that.  When I use current task: ID variable, I can only get the latest task ID.  How to get task ID for each
    approver.
    Said WAHID

    Hi,
    Where did you use the task ID? You can use a log(Log Current Task: ID to the workflow history list) to check the value of the task ID.
    You can take the steps below:
    1.Click on 'Approval(*)' to edit the task process.
    2.Then click on 'Change the behavior of a single task'.
    3.In the “When a Task is Pending” section, add a log action to check the value of the task ID.(Log Current Task: ID to the workflow history list)
    4.Publish the workflow
    5.Then you can check the values of the task ID via Workflow History list.
    If you have any problems, please feel free to let me know.
    Best Regards,
    Lisa Chen

  • In Sharepoint 2013 Workflows, can a task be re-assigned?

    I find that in SharePoint 2013 SP Designer based workflows, I can not find the settings to make the workflow tasks re-assignable.
    This was possible in 2010, I can't find how or where to check off 're-assign task'.
    Thanks, Roy Kim

    Hi,
    In SharePoint 2013 there two platform workflows, SharePoint 2010 workflow and SharePoint 2013 workflow. Which kind of workflow
    do you want to create? If it’s 2010 based workflow, then to reassign task form is used the same method. If it’s 2013, then there only two task actions, assign a task and start a task process, these two actions can’t set to reassign the task form.
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Sharepoint 2013 - Group task assignment from a workflow

    I have designed a workflow, that can be started manually on a folder in SharePoint documents on a team site.
    I would like the workflow to start, assign a task to a SharePoint group, and then have that task show up in the members of that groups Outlook. 
    I am able to assign tasks to a single user and have the task show up in an outlook task list.
    However, when assigning to a SharePoint group, the tasks do not seem to show up in the outlook task lists.
    Is this an impossibility, or is there a way to make this work?
    Thanks,
    Products in Use:
    SharePoint Designer 2013
    Visio 2013
    (If needed I have visual studio, but would rather avoid it if possible. I am a programmer, but new to visual studio)

    Hi Brandon,
    If you are using “Start a task process” in workflow, please make sure that the “ExpandGroup” is Set to yes. Then the task will be generated for every member in the group. Please check if the task has been generated with members.
    Here are some settings you should ensure:
    All members have mailbox enabled in Exchange side.
    The setting for “task show up in an Outlook task list” is the same for all members.
    If it still doesn’t work, try it on SharePoint 2010 workflow. And also provide more information about your workflow and settings.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Project Server 2013 Workflow Task Permissions Breaking Inheritance and Causing Workflow to Cancel

    I have an on-premise instance of Project Server 2013 with a workflow that includes an
    Assigned Task to assign users to Approve or Reject a WF phase. The workflow successfully assigns the task and notifies the user of the task. However, after (or possibly just prior) the user Approves the task, the workflow is automatically
    cancelled. 
    By default, the WF Task List is set to inherit permissions. After Approving an item, it appears that the list permissions automatically breaks inheritance, causing the workflow to cancel. This occurs somewhat regularly after resetting permissions to inherit
    from the parent site. Although there are stretches where the issue doesn't occur. I'm not sure what's causing the list permissions to change. 
    This issue occurs in both our Dev and Prod environments. Has anyone experienced this issue with permissions breaking inheritance automatically?

    Hi Vic,
    According to your description, my understanding is that the workflow was cancled when you created a workflow with Impersonation Step to break inheritance permissions.
    After breaking inheritance permissions, make sure the workflow initiator (the creator) still has least edit permission on the list.
    In addition, please check the workflow history list to find more information about this issue.
    I hope this helps.
    Thanks,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • SharePoint 2013 Workflow Custom Task Form

    Hi..I am working on SharePoint 2013 workflow using visual studio 2013. In this workflow, i am creating tasks and i want to make a custom task form.
    My workflow contains serial tasks. When each user approve, he should specify the next user.
    I have added a custom content type and assigned it to my tasks but all i can do is taking the outcome from the task form as integers.
    I want the user to approve and choose another user so i can assign another task to him.
    thanks..

    I believe what you're looking for is the Collect Data from User function, however I don't see that anywhere in a 2013 workflow. This did exist in 2010 workflows.
    What you can do is to change this to an InfoPath form and run the workflow that way, assuming there isn't anything you absolutely need Visual Studio for.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to reassign a workflow task in SharePoint 2013?

    How can you reassign a workflow task in SharePoint 2013 (online)? I found some discussions online about how to do this, but I don't see this option using SP2013. Note the "Reassignment" checkbox from this screenshot (which I think is from 2010).

    Here is the link
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/fac7eb06-c42e-4f45-bcda-10df28879c1f/in-sharepoint-2013-workflows-can-a-task-be-reassigned?forum=sharepointgeneral
    Thanks!

Maybe you are looking for

  • Two messengers at the same time. A possibility?

    Hey gang I have a question... I have my regular MSN, but I also have one for my business, and I would like them both to be online at the same time... The MSN Messenger I have feature a window for "personal contacts" and one named "Company account" so

  • Adding Barcode field in Acrobat X

    When I try to add a barcode field in Acrobat X I get the following message A Barcode Field encodes data that end-users type into a fillable PDF form. Use of this type of field for paper forms processing requires Adobe's Barcoded Paper Forms Solution

  • My iPod won't turn on and will not connect to my iTunes

    I used my iPod Mini on Sunday, December 4, 2005 without a problem. When I attempted to use it the next day, it would not turn on. The screen won't even come up to try and unfreeze it. I tried to connect it to my iTunes by plugging it into my USB port

  • Temperature monitoring

    Hello,  I am trying to monitor about 30 temperature variables on a third-party system (Red Lion Controller). On my PC, I've installed Red Lion´s OPC server and it works like a charm. From LV/DSC we have full connectivity with the OPC server. The temp

  • HT201210 how to activate my iphone 4

    my iphone suddenly restarted and said activation required...it won't activate its in ios 6 already please help me out