Text Actions in Power Automate Desktop
Using the same text and data formats is a widespread practice in all businesses, ensuring data integrity and readability. Maintaining similarity in numerical, text, and date values are very important, especially in areas such as finance and operations.
In business environments, Microsoft Excel registrations, databases, and reports require the same data formats to make information more accessible and give users the ability to search for it faster and more efficiently.
In this, article we will learn Text actions in Power Automate Desktop to manipulate texts and automate tasks related to texts.
Creating a flow with the text actions
- Open Power Automate Desktop App.

- Firstly, we need to create a flow. Click on New flow.

- Create a flow name text-automation in Power Automate Desktop.

To perform actions with text type variables, the text actions require specifying the text by a text variable. The actions store the output in a new variable.
Introduction to Power Automate Desktop
Pad Text by adding whitespace, word, or phrase before or after text or text value list with Pad text action. The action adds the specified characters to the text so that the led text reaches the specified length.
Enter the text value in the pad or the characters which are used to wrap the text value, as a variable. The action keeps text included for new text variables.
- To pad text it can be done from Left or Right.

- From the Actions panel, drag and drop the Pad text action into the workspace. In Text to pad add Name variable. Select Pad as Left and Text for padding as Denis with Total length as 20.
- The output will be stored in the PaddedText variable. Click on Save.

- Save and Run the flow. We get output as text padded from the left with 20 characters in the Paddedtext variable.

PDF Automation in Power Automate Desktop
This action is used to change the case of the text value or list of values.
- From the Actions panel, drag and drop the Change text case action into the workspace. We can convert the text case into Upper case, Lower case, Title case, and Sentence case.

- Add Name variable to Text to convert. Convert to Upper case and click on Save.

- Save and Run the flow. We get output as our text in the Upper case.

Excel Automation in Power Automate Desktop
This action is used to get Random Text from specified values.
- From the Actions panel, drag and drop the Create random text action into the workspace. Enable what we want in random text like Uppercase letters, lowercase letters, digits, and symbols with minimum and maximum lengths. Click on Save.

- Save and Run the flow. We get output as our text with random characters.

Wait in Power Automate Desktop
This action is used to Replace any text value from a string, text file, or any list values.
- From the Actions panel, drag and drop the Replace text action into the workspace. Text to parse is Name variable, Text to find as John and Replace it with Denis.
- The output will be stored in the Replaced variable. Click on Save.

- Save and Run the flow. We get output as our text John replaced by Denis.

Wait in Power Automate Desktop
This action creates a list that contains the substrings of text which is separated by a delimiter.
- In the Set variable, separate each word by commas. Click on Save.

- From the Actions panel, drag and drop the Split text action into the workspace. The text to split as Name variable, Delimiter type as Custom as ",". The output will be stored in the TextList variable. Click on Save.

- Save and Run the flow. We get output as a list of text values.

CMD actions in Power Automate Desktop
This action parses a text or a text file to find the occurrences of a mentioned subtext or a regular expression.
- We have created a random.txt file with some text in it.

- From the Actions panel, drag and drop the Read text from file action into the workspace. Add File path of random.txt file and store the content as a Single text value. The output will be stored in the FileContents variable. Click on Save.

- From the Actions panel, drag and drop the Parse text action into the workspace. Text to Parse as FileContents variable, Text to Find as "the", starting position from 0 and Ignore the case. The output will be stored in the Positions variable. Click on Save.

- Save and Run the flow. We get the output of the list of positions where the occurrences of "the" are found.

Email Automation in Power Automate Desktop
This action escapes a small set of characters (\, *, +, ?, |, {, [, (,), ^, $, ., #, and white space) by replacing them with their escape codes. For example, \w for a word character or \s for space.
- We have created a random.txt file with some text in it.

- From the Actions panel, drag and drop the Read text from file action into the workspace. Add File path of random.txt file and store the content as a Single text value. The output will be stored in the FileContents variable. Click on Save.

- From the Actions panel, drag and drop the Escape text for regular expression action into the workspace. Add FileContents variable in Text to escape. The output will be stored in the EscapedText variable. Click on Save.

- From the Actions panel, drag and drop the Write text to file action into the workspace. Add File path for random2.txt file and write text as EscapedText variable. Click on Save.

- Save and Run the flow. We get the output in random2.txt where whitespaces are replaced with "\".

Clipboard Actions in Power Automate Desktop
About Author : I am Sharvari Raut, having sound knowledge and experience in technical writing. Currently, pursuing my B.Tech in Computer Science and Engineering.