Solved

Starting a workflow for Selected Rows in a List View?

  • 12 December 2018
  • 2 replies
  • 23 views

Badge +2

I am trying to start individual workflows for selected items in a List View.

I am using the "For Selected rows on #### List View" confition, then running an update method to change a status, which is working correctly (only selected rows are being updated). But, when I put a "Start Workflow" action in the same "for each" condition, only one workflow is starting, but it seems to be passing all items in the list view into the workflow, rather than starting a individual workflow for just the items selected. 

I can't seem to find any documenation or topics on this, what should be the correct set up? 

 

Thanks.

icon

Best answer by MLGT 20 December 2018, 10:04

View original

2 replies

Badge +11

In your foreach loop when you start each workflow you need to pass set any workflow variables by getting them from the SmartObject bound to the list view.  When you loop through the list, the SmartObject references the values of the current rown.

Badge +2

This was resolved by passing the smartObject item id into the workflow as a variable, then creating the reference from that. Just passing the smartObject into the workflow did not work. 

Reply