top of page

How to Initialize a Data Table in Microsoft Power Automate Desktop

💡 When working with data tables in Microsoft Power Automate Desktop, you may encounter scenarios where you need to start with an empty data table. For example, you may want to build the table dynamically, or clear an existing data table at the start of a new loop. In this article, we will show you 2 methods to initialize a data table — that is, to set it to an empty state — using built-in actions.

Problem Description


There are several practical reasons for initializing a data table:

  • Dynamic population — You want to add rows at runtime, based on data retrieved from an API, a file, or a loop.

  • Clearing old data — You are reusing a variable and want to make sure it starts empty in each run.

  • Conditional building — You are constructing different table structures depending on certain conditions.

Solution


Method 1 - Create new data table

You can easily initialize an empty data table using the Create new data table action.

Note: Make sure it is showing 0 Rows, 0 Columns as we want to create an empty data table.


Method 2 - Set variable

You can also use the Set variable action — set the value to

%{ }%

This is the syntax to represent an empty data table in Power Automate Desktop.


If you would like to also initialize the number of columns in the data table together with the column names, use the following syntax instead:

%{ ^['Col_A', 'Col_B', 'Col_C'] }%

In the example above, we are defining 3 columns with the headers Col_A, Col_B and Col_C, but feel free to change this to suit your requirements.


🧩Tip: Once initialized, you can add columns and rows dynamically using the Insert row into data table or Insert column into data table actions.

Additional Information


  • Last updated on: 5 Jun 2025

  • Tested version(s): 2.55.158.25087

  • Prerequisites: None

  • Dependencies: None

  • Known issues: None

Start automation journey CTA background - opt.jpg

💡 Need Expert Help?

If you're facing technical issues or need expert advice and support, we're here to help.

Robotic Process Automation Singapore

CFB Bots is a leading technology service provider in the fast-growing field of Agentic AI and Robotic Process Automation. We partner with large enterprises in their Digital Transformation journey and help them and their employees thrive in the Future of Work.

NAVIGATE
CONTACT US
STAY CONNECTED

Singapore

CFB Bots Pte Ltd

Registration No.: 201705263H

77 High Street

#05-09, High Street Plaza

Singapore 179433

T: +65 6909 2099

E: enquiries@cfb-bots.com

Malaysia

CFB Bots Sdn Bhd

Registration No.: 202401045826 (1591672-X)

Suite: 33-01, 33rd Floor

Menara Keck Seng

203 Jalan Bukit Bintang

55100 Kuala Lumpur

T: +60 39 388 0352

E: my@cfb-bots.com

Australia

T: +61 2 8880 5998

E: au@cfb-bots.com

Join our mailing list to get the latest insights on automation

  • LinkedIn Social Icon
  • Facebook Social Icon
  • Twitter Social Icon
  • Instagram Social Icon
  • YouTube Social  Icon
TS Master Logo.png

© 2017-2025 CFB Bots Pte Ltd. All Rights Reserved. Tel: (65) 6909 2099 | Email: enquiries@cfb-bots.com | Privacy Policy | Terms of Use

bottom of page