Skip to main content
Nintex Community Menu Bar
Solved

Starting a workflow for Selected Rows in a List View?

  • December 12, 2018
  • 2 replies
  • 66 views

Forum|alt.badge.img+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.

Best answer by MLGT

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. 

2 replies

Forum|alt.badge.img+11
  • December 12, 2018

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.


Forum|alt.badge.img+2
  • Author
  • Novice
  • Answer
  • December 20, 2018

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.