how to check for empty parameter

Ruben Verschueren 55 Reputation points
2025-06-20T11:22:42.5066667+00:00

I'm making an azure workbook where I have a grid (data from an azure table) and some buttons to do CRUD like actions.

I've configured it so that when one or more rows are selected the parameter "rowkey" is updated with the rowkey values of the selected rows.

what I want to achieve:

  • use the rowkey value(s) in second query that calls a custom endpoint. I've added only one for the first action/button.
  • do not run the second query until a rowkey is selected AND an action/button clicked since there will be multiple options

issue:

  • checking that a parameter is empty doesn't seem to work consistently.
  • is this even the right way to set up a row selection -> POST to endpoint -> show result scenario?

I've set up these two buttons that save the selecteAction in a parameter (I later want to clear it again when an action is complete, so I can hide the buttons until the next row selectionUser's image

I've set up the conditional visibility but the buttons are always visible. I've tried testing for is not equal to

  • not set
  • null
  • "null" (and setting the param to "null" as default)
  • "" (empty string)
  • undefined

User's image

So either I'm missing something that may or may not be obvious, or it's a bug.

P.S: apologies for the wall of text....

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,645 questions
0 comments No comments
{count} votes

Accepted answer
  1. Alex Burlachenko 9,780 Reputation points
    2025-06-20T12:27:22.16+00:00

    Ruben hi there, thanks for posting this, its a cool scenario u're working on.

    in azure workbooks u gotta check empty params carefully. try using 'is empty' or 'equals' with an empty string ''. azure workbooks parameters. sometimes 'not set' acts weird, so test with simple empty string first.

    also in ur conditional visibility, set the default param value to empty string '' right at the start. then use 'is not equal to' '' for the check. this usually works smoother than null checks.

    when handling selections and actions, always reset the action param after u use it. like clear 'selectedaction' right after the endpoint call. this prevents ghost clicks and weird states.

    ur endpoint call should have two conditions: rowkey exists AND action is clicked. chain these with 'and' in the query settings. makes the logic bulletproof. worth looking into how other tools handle this too. the pattern is similar selection >action >clear state. keeps things predictable ))

    about those buttons staying visible, check the param names in visibility conditions. sometimes a typo sneaks in and the condition just skips silently. happens to the best of us :))

    ur setup is actually pretty solid for crud in workbooks, just needs a tiny logic tweak. u got this %)

    let me know if the empty check still acts up after trying these

    rgds,

    alex


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.