Decode Query

Decode a URL-encoded query string into a query object.

A query string is the remainder of a string after the ? question mark in a URL. Certain special characters, such as space, :, ?, or / need to be encoded because they have special meaning in the URL itself.

Note

This function card is the inverse of Encode Query.

Input

Field Definition Type Required
query Query string. String TRUE

Output

Field Definition Type
output Query object. Object

Example

In https://www.example.com/searchcustomers?name=John%20Doe&region=North%20America, the query string is the part starting with name. The Decode Query function card converts this URL to this object:

{

"name": "John Doe",

"region": "North America"

}

Once in this object form, it is much easier to extract particular query parameters using the Get or Get Multiple function cards.

Related topics

Functions in Workflows

Elements of Workflows