Skip to main content

Uri.BuildQueryString

Assemble a record into a URI query string.

Syntax

Uri.BuildQueryString(
query as record
) as text

Remarks

Assemble the record query into a URI query string, escaping characters as necessary.

Examples

Example #1

Encode a query string which contains some special characters.

Uri.BuildQueryString([a = "1", b = "+$"])

Result:

"a=1&b=%2B%24"

Category

Uri