【发布时间】:2021-07-17 02:06:00
【问题描述】:
我正在尝试发出此 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"
【问题讨论】:
标签: json jwt powerbi token powerquery