In the  K2 Workflow Designer (legacy), you can configure a recursive search filter in the Update List Item and Update Document Properties wizards.

Image

The recursive search filter allows you to configure a search filter for SharePoint list and library items in the root or in subfolders. The wizard searches all folders (including the root) within the targeted list or library.

The SharePoint list item and document steps in the K2 Workflow Designer do not expose the recursive Yes/No property, but you can still accomplish the same result using the steps provided here.

Steps

Follow the steps below to configure a recursive search filter in the K2 Workflow Designer. This example uses a custom list called Events with custom columns called Status and Department.

You can also use these same steps for other, existing lists and libraries.
  1. Create a custom list called Events with two columns called Status and Department. Create list items in the list and enter Title and Department values.
    Image
  2. Create a K2 application for the Events list.

  3. In the K2 Workflow Designer, select the Create Reference step from the Basic option in the Toolbox and drag it on to the canvas.
    Image
  4. On the Configuration Panel, select the Events SmartObject.
    Image
  5. Select the Get List Items method.
    Image
  6. Add two properties called Recursive and Department. Configure the Recursive property to Yes and Department property to IT.
    Image
  7. Name the reference Events Reference.
    Image
  8. Drag a Loop step from the Logic section of the Toolbox on to the canvas.
    Image
  9. Add the Events References to the List option in the Loop step.
    Image
  10. Add a End step to the Completed outcome.
    Image
  11. Add a Update List Item step to the Next Item outcome.
    Image
  12. On the Update List Item configuration panel, select Pick List Item and add the Events Reference.
    Image
  13. Add the Status property to the Properties section. Type Updated from WF: and add the Folio workflow item from the Workflow section in the Context Browser.
    Image
  14. Connect the Update List Item step to the Loop step.
    Image
  15. Configure the List section with the Events Reference.
    Image
  16. Save and deploy the workflow.
  17. Start an instance of the workflow.
  18. The workflow checks all list items that contain IT in the department column and updates the Status of those list items.
    Image