Forum Discussion
Anonymous
3 years agoNot applicable
Get bearer token - Expression.Error
Hi, I'm trying to get a bearer token from a API so that I can refresh it to get data. I have the following code, and it returns the token, but it also returns an error. Any idea what I'm missin...
- 3 years ago
Hi Anonymous ,
this means that the token that you have successfully retrieved doesn't sit in the field called "token", but in a different field instead.
Please be aware that Power Query / M is case sensitive. So it might be Data[Token] instead.
Otherwise please check the exact spelling of the field name in step "Data".
ImkeF
3 years agoCommunity Champion
Hi Anonymous ,
this means that the token that you have successfully retrieved doesn't sit in the field called "token", but in a different field instead.
Please be aware that Power Query / M is case sensitive. So it might be Data[Token] instead.
Otherwise please check the exact spelling of the field name in step "Data".
Anonymous
3 years agoNot applicable
Thanks. Had to rename token to access_token 👍