Hello Developers! In this blog, I’ll walk you through one of the most fundamental concepts in Power Automate Desktop (PAD): variables. If you are just starting with PAD or automation in general, this will be a great starting point to understand how data is stored, passed, and manipulated inside your desktop flows.
What are Variables in Power Automate Desktop?
Let me put it in simple terms: variables are like containers where you can store data temporarily while your automation is running. You can store numbers, text, dates, lists, and even complex data types, such as custom objects.
Think of them like tiffin boxes, you can store different types of food (data) in each box (variable), carry them with you (use in other steps), and even change the contents later.
Why Do We Need Variables?
Let’s say you are automating a task to read an Excel file, filter some data, and send a summary email. In this case, you will need to.
- Store the file path (Text variable).
- Capture the filtered rows (DataTable variable).
- Keep count of rows (Numeric variable).
- Prepare dynamic email content (Text variable).
Without variables, this would be like cooking without utensils – messy and impossible to manage!
How to Create Variables in Power Automate Desktop?
PAD makes it very easy to create and use variables. There are two common ways to create variables:
Method 1. Automatically by Actions
This is the most common way. Many actions in PAD automatically generate output variables.
Example
When you use the 'Read from Excel worksheet' action, it will provide an output, such as ExcelData, which you can use in the following steps.
You can rename it if you want to something like dtEmployeeData for better readability.
Pro Tip: Always give meaningful names to your variables. It’ll help when your flows grow bigger.
Method 2. Manually Using “Set Variable” Action
If you want to create and assign a value to a variable manually, follow these steps:
Steps
- Search for “Set Variable” in the Actions pane.

- Drag and drop it into your flow.
- It is ready to use.
Types of Variables in PAD
PAD supports many types of variables depending on your use case. Some of the commonly used ones.
| Variable Type | Example |
|---|---|
| Text | "Hello, World" |
| Number | 100, 3.14> |
| Boolean | True, False |
| DateTime | 05/06/2025 12:30 PM |
| List | ["Gowtham", "Raj", "Anand"] |
| DataTable | A full table from Excel |
| File/Folder | Paths to files or folders |




Join the conversation! Your thoughts help the community grow.