Json 将值返回到记录时出现表达式错误

Json 将值返回到记录时出现表达式错误,json,jwt,powerbi,token,powerquery,Json,Jwt,Powerbi,Token,Powerquery,我正试图发出此POST请求,以检索要作为记录存储在表中的JWT令牌。它确实检索令牌。但是,我收到错误“Expression.error:我们无法将值“eyJhbGciOiJIUzI1NiIs…”转换为类型Record.type=[type]”。关于我在这里哪里出错的想法 let url = "https://sapif.callminer.net/security/getToken", body = "{""Username&q

我正试图发出此POST请求,以检索要作为记录存储在表中的JWT令牌。它确实检索令牌。但是,我收到错误“Expression.error:我们无法将值“eyJhbGciOiJIUzI1NiIs…”转换为类型Record.type=[type]”。关于我在这里哪里出错的想法

let
    url = "https://sapif.callminer.net/security/getToken", 
    body = "{""Username"": ""xxxxx"", ""Password"": ""xxxx"", ""ApiKey"": ""xxxxxx""}",
    Parsed_JSON = Json.Document(body),
    BuildQueryString = Uri.BuildQueryString(Parsed_JSON),
    token = Json.Document(Web.Contents(url,[Headers = [#"Content-Type"="application/json; charset=utf-8"], Content = Text.ToBinary(body) ] )),
#"Converted in table" = Record.ToTable(token)
in
#"Converted in table"
我想出来了:
let url=”https://sapif.callminer.net/security/getToken,body=“{”Username”“:”svc-piautomation@alegeus.com“,”密码“:”3tmvF7c_=ZCHywW“,”ApiKey“:”alegeus“}”,解析的_JSON=JSON.Document(body),BuildQueryString=Uri.BuildQueryString(解析的_JSON),token=JSON.Document(Web.Contents)(url,[标题=[#“内容类型”)=“application/json;charset=utf-8”],Content=Text.ToBinary(body)],#“表中转换”=Record.ToTable([Token=Token]),在#“表中转换”