Forum Discussion

DionTN's avatar
DionTN
Helper II
4 years ago
Solved

Use parameter in power query m

I am a newby, but try to request an API in power query.   I had the following but want to change it to use parameters:       let body = "{ ""organisation"":""*****"", ""use...
  • v-kkf-msft's avatar
    v-kkf-msft
    4 years ago

    Hi DionTN ,

     

    You are missing some double quotes, please use the following body:

     

    body = "{
            ""organisation"":"""&OrganisationPar&""",
            ""username"":"""&UsernamePar&""",
            ""password"":"""&PasswordPar&"""
            }"

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.