LibraryEASYProcess Reference ManualProcessesServicesHtmlWorkshopUrlDecode

UrlDecode Overview

The URLDecode service is used to take a url string, that has been previously encoded using the UrlEncode service, and to replace hex code in the string with the original special characters. Note that when UrlEncode encodes the string, the hex code is prefaced with a % sign. For example %3d replaced with =.  This is frequently used when encrypting query string parameters to pass in the url. The encrypted string contains special characters that will cause issues in the url, so we encode the string and replace those characters with their hex code. Then the receiving page uses UrlDecode to translate the hex code back to their original special characters, so that we can then decrypt the string and read the parameters and parameter values.

UrlDecode Use Examples
UrlThis is where you put the url string that you would like decoded.

DecodedUrlThis is the updated string with all the hex code translated back to the original special characters.

UrlDecode Use Examples

Basic Use Example


In this example we are storing encoded text in the Inputs using evaluate service then decoding it using URLDecode and Decrypting the decoded text using Decrypt service. Here’s a closer look at the URLDecode service inputs and Output:

Using UrlDecode with EASYProcess “Test” Tab Url

In EASYProcess, when developing a WebPart, there is a “Test” tab which allows users to run the webpart for testing purposes. This uses a temporary webpage to house the webpart. This is so the developer can test the webpart without having to first create the webpage where it will eventually exist.

Here we can see the url used in this “Test” tab feature.

If we take this value and first URLDecode it,

UrlDecode Service Configuration

UrlDecode Output

Next, if we want to further investigate how EASYProcess uses this value, we can copy this outputted string into a Decrypt service. It is a best practice to always encrypt your query strings and EASYProcess also follows this rule.

After the string is decrypted, we can see the value passed as a query string to the tester webpage is the webpart id to display on the page.

Powered by EASYProcess (© 2022 K-Rise Systems, Inc).