cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
freshyshreya
Post Patron
Post Patron

How to give dynamic range for create table

Hi,

 

 I am trying to create a table for the range A1:M1000 for an excel file.The contents are till row 269 in excel file.Therefore my flow is throwing error when its running from 270th row since its blank as shown in the below pic.

freshyshreya_0-1627986599662.png

How can I put dynamic range in the create table so that it creates a table only for those rows which has content?

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Powerplatform01
Post Patron
Post Patron

@freshyshreya 

You can take reference from this video.Also request you to please subscribe this channel

https://youtu.be/9pV5yjLQhBY

View solution in original post

GeoffRen
Microsoft
Microsoft

Have you considered using Office Scripts (specifically Office Scripts with Power Automate)? This is the 'Run Script' action on the Excel connector. With Office Scripts you can use the 'Run Script' action to execute javascript against a workbook. So, in your case, you can have a script that iterates through the rows in your Excel file, finds the range with content, then creates a table in that range in the same script. The other actions don't work with plain ranges so Office Scripts is your only option here.

View solution in original post

2 REPLIES 2
Powerplatform01
Post Patron
Post Patron

@freshyshreya 

You can take reference from this video.Also request you to please subscribe this channel

https://youtu.be/9pV5yjLQhBY

GeoffRen
Microsoft
Microsoft

Have you considered using Office Scripts (specifically Office Scripts with Power Automate)? This is the 'Run Script' action on the Excel connector. With Office Scripts you can use the 'Run Script' action to execute javascript against a workbook. So, in your case, you can have a script that iterates through the rows in your Excel file, finds the range with content, then creates a table in that range in the same script. The other actions don't work with plain ranges so Office Scripts is your only option here.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,987)