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
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.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,155)