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

  1. Okta Workflows guides
  2. Testing the Search Rows card
  3. Related Workflows guides
  4. Workflows resources

Okta Workflows guides

Okta Workflows guides are questions and answers from the community office hours, the #okta-workflows channel on MacAdmins Slack, and other places. Read all the other guides.

How to search the Tables – Search Rows card in Workflows?

This guide will teach you how to test the Tables – Search Rows card.

Testing the Search Rows card

You use the Tables – Search Rows card and pass a variable into the Where Expression field:

Searching table rows card image
Searching table rows card

When you test the Search Rows card, you will see the following:

Testing Search Rows card image
Testing Search Rows card

The test output is not what you expected.

You need to modify the Where Expression JSON to perform the test.

The JSON for searching is:

{
  "expr": [
    {
      "lhs": "Number",
      "op": "=",
      "join": "AND",
      "rhs": 10 
    }
  ]
}

Note that the rhd was updated with rhs.

Testing the card with updated JSON returns valid test outcome:

Testing Search Rows card image
Testing Search Rows card

Another example searching with two fields.

Searching table rows card image
Searching table rows card

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"
    }
  ]
}

Now, testing the card produces the correct result:

Testing Search Rows card image
Testing Search Rows card

Workflows resources

🍫 Get help from Workflows specialists during weekly community office hours.

πŸ“Ί Learn from Workflows videos.

πŸ›Ÿ Get help from support: discuss a Workflows topic or ask a question.

πŸ™‹πŸ»β€β™€οΈ Get help from the community: join the #okta-workflows channelon MacAdmins Slack.

Leave a comment