Hi there!
I’m using an HTTP request to authenticate users via an external system. The response is JSON and includes a refresh token. I’d like to store that refresh token as an app variable so I can use it on each page.
First question, am I thinking about that in the right way?
Second, I’m having trouble storing it into the app variable. I’m using the “Set app variable” function following the HTTP request. I’m using the Formula method to set the value.
My formula looks like this:
LOOKUP(outputs["HTTP request"].resBodyRaw,"refresh_token")
I get this error: “Text type is not assignable to object type”
I’ve also tried it with:
LOOKUP(outputs["HTTP request"].resBodyParsed,"refresh_token")
In that case, I get this error: Type “json” is not assignable to object type AND Type “json” is not assignable to text type.
Seems like this should be pretty simple.
What am I missing here?
P.S. I’m confident I’m getting good data back from the HTTP request. I flowed it into a Javascript snipped and used alerts to verify what was coming back.