Skip to content

Change text to uppercase or lowercase

This article explains how to convert strings that contain letters to uppercase or lowercase.

As a sample, this article uses a scenario that generates a random string and converts it to both uppercase and lowercase.

Copy the following code and paste it into the Power Automate Desktop flow designer to add the actions.

Text.Random UseUpperCaseLetters: True UseLowerCaseLetters: True UseDigits: False UseSymbols: False MinimumLength: 10 MaximumLength: 10 RandomText=> RandomText
Text.ChangeCase Text: RandomText NewCase: Text.CaseOption.UpperCase Result=> UpperCase
Text.ChangeCase Text: RandomText NewCase: Text.CaseOption.LowerCase Result=> LowerCase
  1. In “Search actions”, type “Change text case” and set the parameters as follows.

    Parameter Value
    Text to convert The text data to convert
    Convert to Choose from “Upper case”, “Lower case”, “Title case”, or “Sentence case”
  2. When you run the flow, a variable is set with the text converted to uppercase or lowercase according to the options you specified.