Forum Discussion
Jack_Chen
May 27, 2019Copper Contributor
how to store function with parameters?
I am trying to define a function with parameters. https://docs.microsoft.com/en-us/azure/kusto/query/functions/user-defined-functions states there are two type of functions: ad-hoc Stored funct...
JPPage
Oct 29, 2019Copper Contributor
Has anybody every figured this out? I'm currently running into the same issue.
- beryozadDec 24, 2019Copper Contributor
JPPage Jack_Chen Not sure if you got this figured out already. I find that when saving a function you have to put the cursor on the function name in the editor first (presumably because there may be several functions defined there and it wants to know which one you are trying to save).
I do still have problem with calling the query I just saved. It takes a little bit of time to show up under the "functions" tree item (and can later be managed in the Saved Queries section - e.g. deleted) but whenever I try to use it in another query I get an error:
Body of the callable expression cannot be empty
If anybody knows how to fix that please reply. Thanks!