# UrlDecode

| **Name**    | ***UrlDecode***                                                                 |
| ----------- | ------------------------------------------------------------------------------- |
| Syntax      | UrlDecode (String str)                                                          |
| Purpose     | To return an unescaped string from a URL.                                       |
| Description | Returns a string by replacing escaped characters with resolved ones from a URL. |
| Return Type | String                                                                          |
| Parameter   | str \[System.String] – The escaped string to decode                             |

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/0%20\(3\)%20\(1\)%20\(1\)%20\(1\).png)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*str =* http%3A%2F%2Fwww\.helloWorld.com%2FABC-123%2FABC123

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/1%20\(3\)%20\(1\)%20\(1\)%20\(1\).png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera has returned the resolved URL value.

![](https://github.com/astera-software/Astera_Data_Stack_v9/blob/main/.gitbook/assets/2%20\(3\)%20\(1\)%20\(1\)%20\(1\).png)
