© Copyright 2023, Astera Software
Name
UrlEncode
Syntax
UrlEncode (String str)
Purpose
To return an escaped string.
Description
Returns a string by replacing invalid characters with valid ones for use in a URL.
Return Type
String
Parameter
str [System.String] – The raw string to encode
Example
In this example, we are passing the required parameters to the function transformation object using a Variables object.
Where,
str = http://www.helloWorld.com/ABC-123/ABC123
Right-click on the function transformation object and select Preview Output. You can see that Astera has returned the escaped URL value.