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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (1,322)