<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 Test the Tables – Search Rows Card in Workflows
Workflows
Okta Classic Engine
Okta Identity Engine
Overview

This guide shows how to test the Tables – Search Rows card.

Applies To
  • Okta Workflows
  • Cards
Solution
  1. Use the Tables – Search Rows card and pass a variable into the Where Expression field:
Tables – Search Rows

 

When testing the Search Rows card, the following will be seen:

Search Rows
  1. The test output is not what was expected.

Modify the Where Expression JSON to perform the test.

    • The JSON for searching is:
      {
        "expr": [
          {
            "lhs": "Number",
            "op": "=",
            "join": "AND",
            "rhs": 10 
          }
        ]
      }

NOTE: The rhd was updated with rhs.

 

  1. Testing the card with updated JSON returns a valid test outcome:
Search Rows

Another example searching with two fields:

Search Rows
    • This is the updated JSON to test the Search Rows card above:
      {
        "expr": [
          {
            "lhs": "Country",
            "op": "=",
            "join": "AND",
            "rhs": "Brazil"
          },
          {
            "lhs": "Code",
            "op": "=",
            "join": "AND",
            "rhs": "BR"
          }
        ]
      }
  1. Now, testing the card produces the correct result:
Search Rows

 


Related References

Loading
How to Test the Tables – Search Rows Card in Workflows