# 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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FE5f8QX3sq5yDIYqNzwQK%2F0.png?alt=media)

**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://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FuMAYaSTvevEdnPZcppCA%2F1.png?alt=media)

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

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FDdUpglR3kjR1glHRJlMU%2F2.png?alt=media)
