Help Centre › Functions & Formulas
This article describes the RPA Crypto functionality to decode Base64 to text.
For a full list of available functions, please read CRYPTO functions.
Description
The Base64 decode function converts a Base64-encoded string back to its original text. This is commonly used to decode API responses that return data in Base64 format.
Setting it up
To use the Base64 decode function, follow these instructions:
{{popups:rpas/add:action=crypto-base64-decode}}
Once on a process map:
- Navigate to the process where you would like to add the Base64 decode function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the CRYPTO Base64 decode option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Text | Yes | Text | - | The Base64-encoded text to decode |
| Variable | No | Text | decoded | Variable name to store the decoded result |
Output variables
| Variable | Type | Description |
|---|---|---|
| {decoded} | String | The decoded text |
Errors
| Error | Description |
|---|---|
| Invalid Base64 | The input is not valid Base64-encoded text |
Tips
- Use to decode API responses that return data in Base64 format
- If decoding fails, verify the input is properly Base64-encoded