Are we allowed to use the ClearCollect( Collection, Item, ... ) function within If( Condition, ThenResult [, DefaultResult ] ) functions?
I'm able to use the Kusto Connector successfully within a ClearCollect function from a gallery's OnSelect property; but when I try to wrap it inside an If function to avoid unnecessary calls to Kusto, clicking on "Capture Schema" does nothing. Moving it back outside the If function allows it to work again.
I really would like to avoid making any unnecessary calls to Kusto if I can avoid them, and this is my first approach.