String. Data type of the variable.(Power Automate Cloud flows)

Japanese version.

A variable is an element used in programming that is like a box in which data is named and stored,

They can store a variety of data with certain restrictions.

The ability to utilize variables makes a big difference in what you can do with Power Automate.

Variable type: "String" handles text information such as the body of an e-mail.

Date (date and time) are also handled as strings.

How to use

To use a variable, it must first be initialized. Without initialization, the variable will not be registered as a variable.

To do so, select the "Variable" connector under "Built-in" when adding a step to the flow.

Select "Initialize variable" from the "Actions" menu.

Specify the name and type of the variable.Select "String" for the type.

If unset, the contents of the variable will be an empty string.

Set value

Set fixed string.

To set a value to a variable, use the "Set variable" action in the "Variable" connector.

Add a string to the tail.

It can be appended to the end with the "Append to String Variable" action in the "Variables" connector.

Add a string to head.

If you want to add at the beginning, you must have two variables.

Set variable B by joining a string in front of variable A (this action cannot be set to variable A), and Set the contents of variable B back to variable A.

---

Links

Introduction(Power Automate Cloud flows)