Forum Discussion
golbarg
5 years agoFrequent Visitor
Issues invoking custom function from another
Hello, I'm having trouble finding what's wrong when invoking a custom function from another. Consider: /* getTimeEntryPage(updateFrom, page) */
(updateFrom as text, page as text) =>
let
...
- Anonymous5 years ago
Hi golbarg
Are you sure it is the issue with [page]? Can you try to wrap Text.From([page]), see how it goes?
#"Invoked Custom Function" = Table.AddColumn(#"Renamed Columns", "getTimeEntryPage", each getTimeEntryPage(updateFrom, Text.From([page])))
Anonymous
5 years agoNot applicable
Hi golbarg
Are you sure it is the issue with [page]? Can you try to wrap Text.From([page]), see how it goes?
#"Invoked Custom Function" = Table.AddColumn(#"Renamed Columns", "getTimeEntryPage", each getTimeEntryPage(updateFrom, Text.From([page])))
- golbarg5 years agoFrequent Visitor
Hey Anonymous,
Wow, that was easier than expected, it worked, thanks!
Any idea why I need to convert a text value to text? It feels wrong.
- Anonymous5 years agoNot applicable
Hi golbarg
No, it does not seem to be needed to convert a text to text...I tried to replicate your case with a simple custom function and a list of numbers, it worked after the column changed to text, did not occur the issue...maybe you should have a look at your custom function getTimeEntryPage