Skip to main content

Notifications

Community site session details

Community site session details

Session Id : RnS31bvVfBTtvT6Ckl78Sa
Power Automate - Building Flows
Unanswered

Convert an Excel range to an Excel table with an automated trigger

Like (0) ShareShare
ReportReport
Posted on 15 Feb 2024 10:58:45 by 26

Hi Community,

 

I have been working on a flow to dynamically convert a range in excel to a table format. I have found a way to do it manually using an office script (Figure 01) and a power automate flow triggered manually (Figure 02)

 

Figure 01.

Julianveda_0-1707993440202.png

 

Figure 02

Julianveda_2-1707993585118.png

 

This flow works perfectly when triggered manually. However, I would like to make this dynamic to avoid indicating each time the excel file (red circle in figure 02).

 

My first try was then to use the flow below (figure 03):

 

Figure 03

Julianveda_3-1707993982972.png

 

However, I got an error (figure 04)

 

Figure 04

Julianveda_4-1707994049494.png

 

I suppose I have to get the content of the file for it to work better so I did a second try (figure 05)

 

Figure 05

Julianveda_5-1707994268911.pngJulianveda_6-1707994320778.png

 

This did not work either (figure 06) and is actually creating a lot of files without stopping 😅 had to turn it off.

 

Figure 06

Julianveda_0-1707994837961.png

 

 

Do you know any simple way to make my flow from the beggining of this message work with an automated trigger like "when a file is created or modified" instead of the manual trigger? This in order to make the flow dynamically considered each new file

 

Thanks,

Julian

 

  • Julianveda Profile Picture
    26 on 16 Feb 2024 at 16:25:33
    Re: Convert an Excel range to an Excel table with an automated trigger

    @rzaneti ,

     

    Thank you for your prompt reply. Unfortunately it did not work for me (image below) 😞 Still the same error. 

     

    I did as you suggested: adding "get file properties", using "ID" from "When a file is created. Then, using "full path" from the "Get file properties" in the "Run Script" space dedicated to file.

     

    Julianveda_0-1708100667778.png

     

  • rzaneti Profile Picture
    3,814 Super User 2025 Season 1 on 16 Feb 2024 at 12:34:06
    Re: Convert an Excel range to an Excel table with an automated trigger

    Hi @Julianveda ,

     

    I've jus tried to replicate the same flow as you have, and got the same error. After some tests, I found that you need to add a "Get file properties" action before the "Run Script", pass the created file ID to it, and then use the "Full path" dynamic content from this Get file properties into Run Script file path.

     

    I don't have details about why do we need to include this additional step, but it worked fine for me! 

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/ 
    https://www.linkedin.com/in/raphael-haus-zaneti/ 

  • Julianveda Profile Picture
    26 on 16 Feb 2024 at 08:04:10
    Re: Convert an Excel range to an Excel table with an automated trigger

    Hi @rzaneti ,

     

    Thank you for your answer. I gave a try to your recommendation (figure 01). However, I get another error (figure 02). Am I doing something wrong?

     

    Figure 01

    Julianveda_0-1708070599655.png

     

    Figure 02

    Julianveda_1-1708070630170.png

     

    Julian

     

  • rzaneti Profile Picture
    3,814 Super User 2025 Season 1 on 15 Feb 2024 at 12:53:12
    Re: Convert an Excel range to an Excel table with an automated trigger

    Hi @Julianveda ,

     

    You are referencing the file ID, while you should be using the file path as input. This small change in the input must solve the problem:

    rzaneti_0-1708001553917.png

     

    Let me know if it works for you or if you need any additional help!

     

    -------------------------------------------------------------------------
    If this is the answer for your question, please mark the post as Solved.
    If this answer helps you in any way, please give it a like.

    http://digitalmill.net/ 
    https://www.linkedin.com/in/raphael-haus-zaneti/ 

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard