Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Script to decode base64 in transform script

Patrick Cavanau
Tera Contributor

 

 

Hello, 

I have a requirement to decode the data from Base64 when importing data. Currently I have the following script, but while it does bring the right format and some of the correct characters, it is not entirely correct and I cannot solve why.  For example, 6e7efd23-fd60-47fd-fd6d-50342109fd6c is the outcome of I81+bmCLpEetbVA0IQnybA== but when I run it through the decoder I have, it says it should be 6E7ECD23-8B60-47A4-AD6D-50342109F26C.There are many similarities but there are also a lot of errors. Any help would be greatly appreciated!

 

 

2 REPLIES 2

Patrick Cavanau
Tera Contributor

ServiceNow is not allowing me to paste my code here. If anyone knows how to achieve this it would be appreciated if they could share.

 

PatrickCavanau_0-1729533485145.png

 

PatrickCavanau_1-1729533566152.png