Uppercase action
- Updated: 2024/11/18
Uppercase action
The Uppercase action in the String package enables you to convert the source string to uppercase.
Settings
- In the Source string field, specify the source string.
- In the Assign the output to variable list, specify the variable.
Example
In this example, you will create an automation to read employee data from an excel sheet and convert an employee name to uppercase. This action enables you to ensure consistency across the dataset for accurate data analysis.
Before you build an automation, create an excel sheet with the following data:
Name | Date fo joining |
---|---|
Olivia white | 20/09/2024 |
Liam wenington | 11/11/2024 |
Oliver Wright | 24/07/2024 |
Create an automation and perform the following steps to convert one of the employee
names to uppercase:
- Create a bot.
- On the left panel, click Automation.
A list of available bots and forms is displayed.
- Click Create a bot.
- Enter the bot name: String_uppercase.
- Click Create and Edit.
- On the left panel, click Automation.
- Read the data from the excel sheet.
- Double-click or drag the action.
- In the File field, select the Desktop file: C:\Bot testing\Employee_data.xlsx
- Select the Sheet contains a header option.
- In the Create Excel session field, enter Default.
- Double-click or drag the action.
- From the Cell option field, select the From specific cell option.
- Enter A2 in the Cell address field.
- Select the Read visible text in cell option.
- Retain the Session name as Default.
- In the Assign the output to variable field, select the list variable ExcelRowData to store the output.
- Double-click or drag the action.
- Retain the Session name as Default.
- Convert the retrieved value from the excel sheet to a string variable.
- Double-click or drag the action.
- In the List variable field, enter ExcelRowData
- In the Index number field, enter 0.
- In the Assign the output to variable field, select the string variable string_output to store the output.
- To print the values, double-click or drag the Message
box
action. In the Enter the message to
display field, enter
$string_output$.
The bot retrieves the value from the excel sheet and displays the output as follows:
- Convert the retrieved value to uppercase.
- Double-click or drag the action.
- In the Source string field, enter $string_output$
- In the Assign the output to variable field, select the string variable uppercase_output to store the output.
- To print the values, double-click or drag the Message box
action. In the Enter the message to display
field, enter $uppercase_output$.
The bot converts the retrieved value to uppercase and displays the output as follows: