Complete Guide to Power Automate Excel Online (Business) Actions: How to Manipulate Excel Files in Flow

I needed to manipulate Excel files stored in SharePoint document libraries, so I researched the available Excel actions. Here’s a comprehensive summary of what I found.

スポンサーリンク

Working with Worksheets

Creating a Worksheet

This action creates a new worksheet. When executed, it adds a new sheet to your Excel file as shown in the image below.
Note: If the worksheet name already exists in the Excel file, you’ll receive a 400 error
Excel Online (Business) - Connectors

Getting Worksheet Information

This action retrieves worksheet information. When executed, it returns key properties of the worksheet including “ID,” “Name,” “Visibility,” and “Position” as shown in the images below.

 

Table Operations

Creating a Table

This action creates a table within an Excel worksheet. When executed, a table is created in Excel as shown in the image below. Note: You can specify the worksheet by using “!” in the [Table Range] field.

Getting Tables

This action retrieves all tables from an Excel file. For example, if the Excel file contains two tables:
Both tables will be retrieved as an array:

Adding a Row to a Table

This action adds a new row to a table. When executed, you can add a row to your specified table.

Getting a Row

This action retrieves a row from a table by specifying a key column and its value. For example, when retrieving a row where the “Title” column equals “B”, you’ll get the following result. Note: Similar to a LookUp function, if multiple rows match the condition, only the first matching row will be retrieved.

Updating a Row

This action updates a row in the table. Similar to the Get Row action, you specify the target row using a key column. Also like the Get Row action, if multiple rows match the condition, only the first matching row will be updated.

Deleting a Row

This action deletes a row from the table. As with the previous actions, you specify the target row using a key column. If multiple rows match the condition, only the first matching row will be deleted.

List Rows Present in a Table

This action retrieves all rows from a table. Since it returns a list of values, you’ll typically need to use an “Apply to each” loop when working with the results.
Here’s what the execution result looks like:

This action is commonly used when you need to delete all rows or perform a complete search through the table.

Add Key Column to Table

This action adds a key column to the table. Here’s what happens when executed: Note: Although it’s called a “key column,” it appears to simply add a regular column (as far as I understand).

Related Articles

コメント

Copied title and URL