Bridge: Data Reference Doesn't Return Same as Hardcoded Value

I'm connected to an external API that requires a token to be added as a Request Header for calls. The token cannot be hardcoded to the call since it expires every hour. So I must make a call to refresh the token then use that in subsequent call's Header.

When I pass the token as a data reference to the Header of the subsequent call, the API returns a 401 error. (For the screenshot below I removed the first call to get the token and I'm just passing the token string from the JS). I get the same error whether it comes from the JS or from the call directly.

But when I provided the token directly in the Value, it returns 200 success…

Do I need to "clean" the Bridge data reference somehow? I'm stumped.

Ryan Sides

Smartsheet Tips and Tricks for Beginners and Advanced on LinkedIn and YouTube

Come Say Hello!

Tags:

Answers