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

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

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (956)