Forum Discussion
Benjamin Girardeau
Jun 26, 2018Former Employee
Creating a stored function with parameters
Hi,
I would like to create a stored function that has input parameters. Is there a way I can do this?
Right now I have:
// --- Start of stored function ------
let DiffUsers = (v...
Evgeny Ternovsky
Microsoft
Jun 28, 2018You can use a let statement as in your example to serve the same purpose as a SProc. Today, however, this is only possible at query time; you cannot unfortunately save these as a "function" the same way that you can with views. It is something on our backlog, but will take a while to properly implement. For more details on the query-time options available, check out the article on UDFs.
mark_nettle
Jan 17, 2019Copper Contributor
Making this possible would an be incredibly useful addition to Log Analytics