Category: Utilities | Works in: Canvas Apps
EncodeUrl percent-encodes a string for safe use in a URL. JSON converts a value to a JSON-formatted text string.
EncodeUrl( Text )
JSON( Value [, JSONFormat.IndentFour | JSONFormat.FlattenValueTables | ...] )
EncodeUrl(Gallery1.Selected.Title)
// "Hello World" → "Hello%20World"
Launch("mailto:support@co.com?subject=" & EncodeUrl("Issue: " & Gallery1.Selected.Title))
JSON({ Name: "John", Age: 30 })
// → "{\"Name\":\"John\",\"Age\":30}"
Launch(
"mailto:" & varManager.Email &
"?subject=" & EncodeUrl("[Approval] " & Gallery1.Selected.Title) &
"&body=" & EncodeUrl(
"Record ID: " & Gallery1.Selected.ID & Char(10) &
"Requested by: " & User().FullName & Char(10) &
"Due: " & Text(Gallery1.Selected.DueDate, "dd MMM yyyy")
)
)
Patch(AuditLog, Defaults(AuditLog), {
Action: "Update",
RecordID: Gallery1.Selected.ID,
DataBefore: JSON(Gallery1.Selected, JSONFormat.IndentFour),
ChangedBy: User().Email,
ChangedOn: Now()
})
Launch(
varFlowTriggerURL &
"?customerID=" & EncodeUrl(Text(varCustomer.ID)) &
"&action=" & EncodeUrl("SendWelcomeEmail") &
"&language=" & EncodeUrl(varUserLanguage)
)
- Validate inputs before using in write operations.
- Combine with related functions for complete workflows.
- Test with both empty and populated data sources.
- Consider delegation when working with large data sets.
| Function | Relationship |
|---|---|
Launch |
Related function |
Concatenate |
Related function |
JSON |
Related function |
Patch |
Related function |
← Back to Home | Power Apps Formulas Reference | Last updated: May 2026