0

I am authoring a SharePoint 2013 workflow. This workflow needs to create tasks. In the workflow setting we can select Task and History list. And when tasks are assigned, task items are created on the task list.

I have a requirement that I have to create task on multiple lists based on certain condition

Example:

WF Stage : Escalate
WF Stage : Exception

Both the workflow stages will create tasks.
Tasks created in the "Escalate" stage will go to a list called "Escalate Tasks" and
tasks created in the "Exception" stage will go to a list called "Exception Tasks".

I am able to create tasks on multiple content types of the same list, but cannot find any option to create on multiple lists.

Is it possible?

2 Answers 2

1

Yes it is possible.
It is a SharePoint limitation, each Workflow is associated with one Task list and one History list but we can overcome this by creating 2010 workflow and call that in 2013 workflow. SharePoint designer workflow 2013 allows you to call 2010 site workflows or List workflows.

So, you can create two 2010 workflows and associate the respective task lists in that workflow and create tasks using that.
In your case:
In WF Stage:Escalate - Call a 2010 workflow which will create task in "Escalate Tasks" list.
In WF Stage:Exception - Call a 2010 workflow which will create task in "Exception Tasks" list.
Hope this is useful.

5
  • yes. We can do that using secondary workflows. But I am further using the task outcomes. If I create task using another workflow, how can use the outcomes in my primary workflow?
    – Bishnu Das
    Commented Aug 5, 2014 at 9:57
  • Assign the outcome to one of the variable. Access the variable in your primary workflow. 2010 workflow variables will be available under datasource - "SharePoint 2010 Output: <Your Workflow Name>" Commented Aug 5, 2014 at 10:03
  • 1. Refresh the SharePoint designer 2. Re-Publish the 2010 workflow 3. Close and re-open SharePoint designer. Commented Aug 5, 2014 at 12:20
  • Do you have a working demo of how to create and use task outcomes ( 2010 )?
    – Bishnu Das
    Commented Aug 5, 2014 at 12:52
  • Nope, but I have implemented similar workflows many times. We started using 2010 workflow like subroutines in 2013 to achieve functionalities that are not feasible in 2013. Commented Aug 6, 2014 at 6:15
0

Yes it is possible.
You can use SharePoint Designer to create the workflow and create new items to any(or multiple) lists.

Regards

1
  • Well. We can always create items in any list. That's true. But is it the case while assigning tasks? I want it to be using "Assign Task" action. When a task is assigned, the workflow automatically creates a task item in the task list. In my scenario, I am trying not using the "Create item" action, but assigning tasks.
    – Bishnu Das
    Commented Aug 5, 2014 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.