Forum Discussion
a68tbird
Resolver II
2 years agoPassing Value from Function as Parameter in URL
Hello all - I'm trying to pass a value retrieved from a function into an API url as a required parameter. The function returns a number (the List ID). The API call in M is as such: = Json.Docum...
- 2 years ago
Hi a68tbird ,
you need to call that function and not simply reference it.
Please try something like this:
Number.ToText(YourFunctionName())If your function requires parameter(s), you have to pass them into the red brackets:
Number.ToText(YourFunctionName(YourParameter))
But in any case: You need the brackets to call the function.
ImkeF
Community Champion
2 years agoHi a68tbird ,
you need to call that function and not simply reference it.
Please try something like this:
Number.ToText(YourFunctionName())
If your function requires parameter(s), you have to pass them into the red brackets:
Number.ToText(YourFunctionName(YourParameter))
But in any case: You need the brackets to call the function.