Forum Discussion
gvg
8 years agoPost Prodigy
Invoking custom function from within a query
Hi all, I don't seem to find correct syntax to invoke my custom function from a query. I have this function called xReplace that changes a lot of strings into something else. The function has no ...
- 8 years ago
Function.Invoke expects a list as second argument.
It should be OK if you put the argument between curly brackets.
let Source = .... my = Function.Invoke(xReplace,{#"Renamed Columns"}) in myOtherwise you might consider not to use Function.Invoke and just call the function directly.
I don't think Function.Invoke has any added value in this case.
MarcelBeug
8 years agoCommunity Champion
Function.Invoke expects a list as second argument.
It should be OK if you put the argument between curly brackets.
let
Source = ....
my = Function.Invoke(xReplace,{#"Renamed Columns"})
in
my
Otherwise you might consider not to use Function.Invoke and just call the function directly.
I don't think Function.Invoke has any added value in this case.
gvg
8 years agoPost Prodigy
Great, thanks! How do I call function directly? I thought I should use Invoke?