Skip to main content

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.

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.


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