string function. Conversion.(Power Automate Cloud flows)

Japanese version.

Converts non-text data such as numbers and arrays to text.

It is mainly used when importing files from some application or when saving data to a text file, When saving data to a text file.

Spec

string('<value>')
ArgumentDefaultDescription
valueRequired fieldValue to convert.

How to use

In most cases, it is used in the "value" when initializing or setting variables of type "String".

Click on the "Expression" tab, string, and the function name and () will be set in the expression field.

Specify the value to be converted as an argument.

When dynamic content or variables are used in expressions, special specifications are required.

(How to get dynamic content with expressions.)

Click on the button, and if the display looks like the following, the setting is complete.

You can change the function by clicking this purple icon.

Example result

Number

string(123) will convert to the string '123'.

Array

Arrays can also be specified.

string(createArray('123', '456', '789')) will be converted to ["123", "456", "789"].

---

Links

Conversion Functions(Power Automate Cloud flows)