UrlEncode
Function: UrlEncode
This action helps you prepare text for use in web addresses (URLs). It converts special characters, like spaces or symbols, into a format that web browsers and servers can understand. This prevents errors when you share links, build dynamic URLs, or send data through web requests.
Input,
- Text: The piece of text you want to convert into a URL-friendly format. This input is required.
Output,
- Result: This is the name of the variable where the URL-encoded text will be stored. By default, if you don't specify a different name, the encoded text will be saved in a variable named
RESULT.
Execution Flow,
Real-Life Examples,
-
Scenario: Creating a shareable link for a document with a complex name.
- Inputs:
- Text: "My Project Report - Q3 2023 (Final Version).pdf"
- Result: A new variable named
RESULTwill be created, containing the value: "My%20Project%20Report%20-%20Q3%202023%20%28Final%20Version%29.pdf". This encoded text can then be safely used as part of a URL.
- Inputs:
-
Scenario: Building a search query for an external website.
- Inputs:
- Text: "no-code platform pricing comparison"
- (Implicitly, the output variable name is
RESULTby default)
- Result: A new variable named
RESULTwill be created, containing the value: "no-code%20platform%20pricing%20comparison". You can then append this to a base URL likehttps://example.com/search?q=to form a complete search link.
- Inputs:
-
Scenario: Passing an email address as a parameter in a web request.
- Inputs:
- Text: "[email protected]"
- (Let's say you explicitly name the output variable
EncodedEmail)
- Result: A new variable named
EncodedEmailwill be created, containing the value: "support%40yourcompany.com". This ensures the "@" symbol is correctly transmitted in the web request.
- Inputs: