Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to use a Token from different Table dynamically in a Web Query

Hello, 

 

I would like to use a token I get from a different table in my query for this table:

 

I have one Token Table with one Token that changes every day.
The Token is changing often in this query so I would like to put it in this query automatically. I tried to use a Parameter and use Authorization="Bearer " &Parameter. Which worked fine but I couldn't get my Token from the Token Table automatically into the Parameter. Is there any way to automatically use the Token out of my Token Table in this Code or to get the Token into a Parameter automatically?

 

Thank You

  • If your token table is just one row, you could get the token like:

    [..., Authorization="Bearer " & TokenTable[TokenColumn]{0}, ...]

2 Replies

  • artemus's avatar
    artemus
    Microsoft Employee

    If your token table is just one row, you could get the token like:

    [..., Authorization="Bearer " & TokenTable[TokenColumn]{0}, ...]
  • Anonymous's avatar
    Anonymous
    Not applicable

    Picture of the Table: