Forum Discussion

a68tbird's avatar
a68tbird
Icon for Resolver II rankResolver II
2 years ago
Solved

Passing 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...
  • ImkeF's avatar
    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.