{"id":3418,"date":"2020-07-31T14:38:07","date_gmt":"2020-07-31T21:38:07","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-automate\/announcing-variable-support-in-ui-flows\/"},"modified":"2025-06-11T07:58:04","modified_gmt":"2025-06-11T14:58:04","slug":"announcing-variable-support-in-ui-flows","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-automate\/announcing-variable-support-in-ui-flows\/","title":{"rendered":"Announcing Variable support in UI flows"},"content":{"rendered":"
We are excited to announce the availability of variables inside UI flows. This is another example of our commitment to rapidly iterate on features to drive value in UI automation scenarios.<\/p>\n
With this feature, users can add variables to perform multiple actions within your UI automation. You can use variables for data types such as integer, float, array, string etc.<\/p>\n
For example, you can use a variable to count how many times an operation was performed in a loop. Or you can use variables to create a string array with screen recordings done in a UI flow loop.<\/p>\n
Here are the steps to create and use variables in a UI flow.<\/p>\n
1.\u00a0 Go\u00a0to the beginning of the UI flow and select <\/span>Add an action 2.\u00a0\u00a0Search for variable and select <\/span>Initialize variable<\/strong> action<\/span> Once initialized, you may use variables within your UI automation to perform multiple actions.<\/p>\n For example, if your UI automation scenario involves reading values from a screen in a loop, you could achieve this by initializing the variable as an array type. Then, within the UI flow, simply select the Append to array<\/strong> variable<\/strong> action and use the output of Get Text<\/strong> action from dynamic content<\/p>\n \u00a0<\/p>\n \u00a0<\/p>\n
<\/strong><\/p>\n
\n
<\/p>\n
<\/p>\n