Base64 encode url payload for screen pop

We have a requirement to perform a screenpop based on the ANI, ID, or other data being passed to the script and in order to perform that screen pop, the data must be encoded as base64 and added as part of the URL for Salesforce. What are our options? Is there some sort of scripting that can be used within a Script, or something like that?

Here is a sample URL:https://ourbaseurl.sandbox.lightning.force.com/one/one.app#eyJjb21wb25lbnREZWYiOiAiZm9yY2VTZWFyY2g6c2VhcmNoUGFnZURlc2t0b3AiLCJhdHRyaWJ1dGVzIjogeyJ0ZXJtIjogIig1NTUpIDU1NS01NTU1Iiwic2NvcGVNYXAiOiB7InR5cGUiOiAiVE9QX1JFU1VMVFMiLCJuYW1lc3BhY2UiOiAiIiwibGFiZWwiOiAiVG9wIFJlc3VsdHMiLCJsYWJlbFBsdXJhbCI6ICJUb3AgUmVzdWx0cyIsInJlc3VsdHNDbXAiOiAiZm9yY2VTZWFyY2g6cHJlZGljdGVkUmVzdWx0cyJ9LCJjb250ZXh0IjogeyJGSUxURVJTIjoge30sInNlYXJjaFNvdXJjZSI6ICJBU1NJU1RBTlRfRElBTE9HIiwiZGlzYWJsZUludGVudFF1ZXJ5IjogZmFsc2UsImRpc2FibGVTcGVsbENvcnJlY3Rpb24iOiBmYWxzZX0sImdyb3VwSWQiOiAiREVGQVVMVCJ9LCJzdGF0ZSI6IHt9fQ==

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.