<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
How to Delete Multiple Table Rows in Workflows
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

This guide will teach how to delete multiple table rows in Workflows.

Applies To
  • Okta Workflows
Solution

A Workflows table provides fast-short-term storage for flows. Check out Workflows Tips #20: How to Manage Tables for Fast Short-Term Storage to learn when to use tables.

A table contains both positive and negative numbers. The goal is to delete all rows containing a negative number.

rows with different numbers   
 

The solution has two flows:

  1. A flow to find all rows to delete (with negative numbers)
  2. A helper flow to delete each row

The main flow searches for rows with negative numbers and passes each row to a helper flow for deletion:

Main and helper flow  
 

The flow has the following cards:

  • The Tables – Search Rows finds all the rows with negative numbers
  • A list of rows with a negative number is passed to the List – For EachFor Each calls a helper flow ([Helper] Delete row) for each item, passing its Row ID

The Tables – Search Rows options view:

Tables – Search Rows options view  
 

Search criteria (to change it, click on the Change link – see the above screenshot):

Search criteria  
 

To pass a row ID to the helper flow, click the down arrow for the Row ID field and choose Item > Row ID:

Row ID field  
 

The helper flow deletes each row by its Row ID:

helper flow that deletes each row by its Row ID  
 

After the flow is run, all rows with negative numbers are deleted:

Final Table

Loading
How to Delete Multiple Table Rows in Workflows