Forum Discussion
Hi pp_01 , it looks like your value might be HTML escaped rather than base 64 encoded. Can you tell more about where this SSO ID value is coming from? Are you retrieving it from the REST API, or query parameter, or somewhere else?
There's no utility to un-escape, but if it's just the @ symbol giving you trouble you could maybe try just a simple ?replace("@","@") on the variable.
- pp_016 years agoMentor
Hello AdamN this SSO ID is coming in a JSON as a property value from a GET Response when I'm trying to get the user details for a particular Webhook event.
<#assign msg_response = http.client.request("${Url}").header("Authorization","Basic ${base64}").header("Accept","application/json").header("Content-Type","application/json").get()/>
The above code gets me the response and in there that's how it comes -"issuer_earner_id":"cscusers2@gmail.com"
But the strange thing is when I'm printing the same response in a component then it prints "issuer_earner_id": "cscusers2@gmail.com" properly and even if I want to get it out separately in a variable it is possible for me to do that, but only in a component not in an endpoint though. While printing the response why this character "@" is printing as "@" in the endpoint but not in the component? Also if I'm making the GET call in the console I'm able to get the value cscusers2@gmail.com properly.
And yes, to replace the @, that is the current option we have as we have tried almost everything to encode it somehow to get the desired result but nothing worked. But our functionality can break if there is any other special character which comes as HTML escaped so we were hoping for an all-around solution.
Related Content
- 10 years ago