Category: Text | Works in: Canvas Apps
Reference for all common text manipulation functions: Trim, TrimEnds, Upper, Lower, Proper, Len, Left, Right, Mid, Find, Substitute, Replace, Char, EncodeUrl, IsMatch.
Trim(t) Upper(t) Lower(t) Proper(t) Len(t)
Left(t,n) Right(t,n) Mid(t,start,n)
Find(needle,haystack) Substitute(t,old,new) Replace(t,start,n,new)
Upper("hello") // "HELLO"
Lower("WORLD") // "world"
Proper("john doe")// "John Doe"
Left("Hello", 3) // "Hel"
Right("Hello", 3) // "llo"
Mid("Hello", 2, 3) // "ell"
Len("Hello") // 5
Find("lo", "Hello") // 4
Substitute("Hello World", "World", "Power Apps") // "Hello Power Apps"
Lower(Left(Trim(txtFirstName.Text), 1) & Trim(txtLastName.Text))
// "John Smith" → "jsmith"
Upper(Left(ddlCategory.Selected.Value, 3)) &
Text(Year(Today()), "0000") & "-" &
Text(Gallery1.Selected.ID, "000")
// → "ELE2026-042"
Patch(Contacts, Defaults(Contacts), {
Name: Proper(Trim(txtName.Text)),
Email: Lower(Trim(txtEmail.Text)),
Phone: Substitute(Substitute(Trim(txtPhone.Text), " ", ""), "-", ""),
PostCode:Upper(Trim(txtPostCode.Text))
})
- 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 |
|---|---|
Concatenate |
Related function |
IsMatch |
Related function |
Split |
Related function |
Value |
Related function |
Text functions – Microsoft Learn
← Back to Home | Power Apps Formulas Reference | Last updated: May 2026