<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
0D54z000095ywhFCAQOkta Identity EngineWorkflowsAnswered2023-07-28T00:51:39.000Z2023-04-19T20:42:24.000Z2023-07-28T00:51:39.000Z

AndrewW.50890 (AppFolio) asked a question.

How to search a table for an empty field

I am trying to use a workflow to audit values in a workflow table (specifically checking to see where there is no email listed in a specific column). To do this, I assume the easiest way is to search the table with criteria of email = "".

/help/servlet/rtaImage?refid=0EM4z000005SolD

To do this, I have attempted to leave the corresponding value empty, use "", and use NULL. All of which have failed for various reasons. When I used "" and NULL, it would actually search for those values on the list, thus returning nothing. When I leave the value empty, I get the error "HTTP Error: Invalid value for search query: the 'userEmail' input is an empty string"

 

I also on a whim attempted to use a compose tile to just raw input the NULL value in the request (without quotes), but ended up with an Invalid Input error.

/help/servlet/rtaImage?refid=0EM4z000005Solh

 

Is there a better way to do thi


qb6vu likes this.
  • Unfortunately, I haven't found it possible to use the Search Expression within the Search Rows card to find blank/null values.

     

    It's a bit hacky, but you could return all the rows, then use a List - Filter card... set the path to the column name you're checking for blank values (userEmail in this case), and set the operator to is empty.

     

    example workflow that returns all table rows and uses List Filter card to identify empty valuesexample workflows tableIn this quick example, I have six table records... 2 of them are missing user emails. In flow history, you can see that my filter is working as expected via the Length cards. 😎

     

    Hope this helps,

    Bryan

     

    Expand Post
  • OwenK.09490 (Vialto Partners)

    I also need a != Null or "is not blank" option to filter out rows where that particular field isn't defined, so as a workaround ended up using >= !

     

    image 

    When I returned multiple results and sorted alphabetically ! was returned before letters or numbers. I didn't specifically test against whitespace or empty strings, so you may want to do further testing depending upon your needs.

    Expand Post
  • OwenK.09490 (Vialto Partners)

    >= ! for non-blank rows

    < ! for blank rows

This question is closed.
Loading
How to search a table for an empty field