What is a Variable?

In Microsoft Power Automate, variables are used to store data that you can use later in your flow. Think of a variable as a container for storing values (such as text, numbers, or lists) and changing it whenever needed. Before using a variable, it must be initialized with a specific data type.

In this article, I will explain the different types of variable actions available in Power Automate and how to use them.

Prerequisites

Types of Variable Actions

Initialize Variable

This action creates a variable and sets its initial value.

Key Points

Example -Create a variable named varTotalCount and set its value to 0.

20-03-2026-03-23-15

Set Variable

This action is used to change the value of a variable that you already created.

Key Points

Example - Set varTotalCount = 10

20-03-2026-03-25-46

Increment Variable

This action is used to increase a number variable by a specific value.

Key Points

Example: Increment varTotalCount by 1

20-03-2026-03-28-31

Decrement Variable

This action is used to decrease a number variable by a specific value.

Key Points

Example - Decrement Counter by 1

20-03-2026-03-30-55

Append to String Variable

This action adds text to an existing string variable.

Key Points

Example - Append Approved to varStatus

20-03-2026-03-35-18

Append to Array Variable

This action adds a new item to an array variable.

Key Points

Example - Add "Item1" to varItemsList

20-03-2026-03-45-51

Best Practices

Conclusion

By using this article, you can easily understand how to create, update, and use variables properly, helping you build flows that are easier to manage and more efficient.