Hi Guys,
I have a requirement to retrieve rows from an excel file and manipulate them. For this I am using Excel Online (Business) connector
The connector itself has actions to do this but it is expecting Table as a mandatory field. The excel file I need to get data from does not has any tables in it and this is the requirement.
Is there any way to retrieve rows from an excel file which does not has any tables ?
Solved! Go to Solution.
@SriHarishARJ This comes up a lot in my workplace and by far the easiest workaround I've found (at least for reading from Excel - for writing to an Excel sheet without it being in Table format, Office Scripts is the way forward - the Power Automate desktop suggestion ITT requires a premium license to call it from a cloud flow) is just to use Power Query to pull in data form the source file and have the flow use that version instead. Takes a couple of minutes max to Get data > from workbook and you have a nice neat Table Format just as Power Automate likes it 😊
A common related scenario is we get the same non-table spreadsheet coming in by email regularly with updated data, so we have one flow to auto-save the attachment as it arrives in to the same SharePoint location, and then an Excel file which uses Power Query to pull in the data from the attachment save location. Each new flow with the email trigger overwrites the previous file, so our Power Query version which automatically creates it in Table Format updates upon each refresh.
If you have Premium Connectors, I recommend the tutorial from Sharepains which uses HTTP Requests and Microsoft Graph: https://sharepains.com/2018/10/17/microsoft-flow-read-large-excel-files-within-seconds-without-creat...
If you do not have Premium Connectors, but do have 365, I highly recommend DamoBird's tutorial using Office Scripts (underrated channel, great stuff on there):
https://www.youtube.com/watch?v=UspiIlj6hSQ
If you have neither, then I'm not exactly sure of how to achieve that since a lot of the connectors capable of that kind of operation are either Premium or require 365 Accounts.
Hope this helps!
Cheers,
jbishop
HI @Anonymous ,
Yes, you can also do this with Power Automate Desktop and even run it through a cloud flow. In this example, you would Run a Desktop Flow Action and call your RPA that can work with rows, columns and ranges of data with ease - even when you don't have actual table data. Please mark as a solution if this helps! Always glad to help! Tom 👍🏽
@SriHarishARJ This comes up a lot in my workplace and by far the easiest workaround I've found (at least for reading from Excel - for writing to an Excel sheet without it being in Table format, Office Scripts is the way forward - the Power Automate desktop suggestion ITT requires a premium license to call it from a cloud flow) is just to use Power Query to pull in data form the source file and have the flow use that version instead. Takes a couple of minutes max to Get data > from workbook and you have a nice neat Table Format just as Power Automate likes it 😊
A common related scenario is we get the same non-table spreadsheet coming in by email regularly with updated data, so we have one flow to auto-save the attachment as it arrives in to the same SharePoint location, and then an Excel file which uses Power Query to pull in the data from the attachment save location. Each new flow with the email trigger overwrites the previous file, so our Power Query version which automatically creates it in Table Format updates upon each refresh.
I have very similar situation: i receive emails with Excel attachments, that dont have Table format. Im my case, i have to parse every Excel to json and work with API after that🙈
And never used Power Query before((
If i understand right, i have to send every attachment to SharePoint => Create a table from it - using Power Query? =>( parse to json)
Im new in PA, need some help...
@Marina51533 I have half a dozen of these 'when an email arrives > save attachment to SharePoint (with the same filename so it overwrites) > refresh the power query Excel file' setups because of having to deal with non-table Excel files sent by email from another Dept, it only takes a few mins to set up the first time and then it works forever (just have to refresh the power query data). The flow is really straightforward and the Power Query is even straightforwarder (assuming no transformations required, but even if you do, you only need to do that once and the transformations will be applied every time you refresh) 😊:
- When an email arrives as trigger: select the email those regular attachment emails come from, include a keyword that's guaranteed to be in the subject line and set only with attachments to yes.
- Get attachment (using the message id from the trigger)
- Create file in SharePoint - use a standard hard coded filename so that the file is always up to date (you can save the original filename version in an archive folder if you want as well, but I'm thinking about having the reliably refreshed data connected via Power Query), use attachments attachment id for the id and attachments content for the content.
The first time you do that, create a new Excel file, then go to Data > Get Data > from Excel Workbook, then select the worksheet and if you need to clean anything up, you can do it by clicking Transform and then do whatever (Power Query is AWESOME and worth learning, lots of YT vids on it) , but to just get the data in a table format, you can just click Load, and that's it! You'll see the original data in a nice table format, and from now on any time you refresh, it'll refresh based on the source data file and Power Automate can just use this table-format version.
Thanks a lot for help! Will work on it today:)
After you start using Power Query I promise you'll wonder how you ever lived without it, it's a godsend even beyond this 'table conversion hack' for Power Automate purposes.
Dear,
You should try this. you can retrieve rows from an Excel file that does not have any tables using Power Automate and the Excel Online (Business) connector. While the connector might expect a table name for certain actions, you can still achieve your goal by working with the data range directly. Here's how you can do it:
Use Named Ranges: Named ranges in Excel are named references to specific cell ranges. You can create named ranges in your Excel file to represent the data you want to manipulate. This allows you to reference the data range by name instead of using a table. Here's how:
a. In your Excel file, select the range of cells that you want to retrieve and manipulate. b. Go to the "Formulas" tab, and in the "Defined Names" group, click on "Name Manager." c. Click "New" to create a new named range. d. Give your named range a meaningful name and specify the cell range it refers to. e. Save the named range.
Retrieve Rows using Named Range: Now that you have a named range, you can use it in Power Automate to retrieve and manipulate data:
a. In your Power Automate flow, add an "Excel Online (Business)" connector action. b. Choose the appropriate action based on what you want to do with the data (e.g., "Get rows"). c. When the action asks for the table name, provide the name of the named range you created in Excel.
Process the Retrieved Data: After retrieving the rows using the named range, you'll have the data available for manipulation in Power Automate. You can add further actions to perform your desired manipulations.
@hasnainhaider68 - that's a great tip but mainly for ad hoc one-off cases, and if you're going to manually amend an Excel file so Power Automate can use it as a one-off, it's just as easy to convert to a table (Ctrl-T) than to use a named range, and Tables bring so much more functionality. Named ranges are awesome, but I think the predominant use case people struggle with in Power Automate is when they get regular reports from someone outside their dept / org, which isn't in Table format. Any method which avoids you having to change it manually every time is ideal, so far the best approach I've got is a one-time Power Query, but what I'd really love is a Power Automate action like 'Create a table in Excel', using something like CurrentRegion in VBA (the full rectangle of data adjacent to any given cell)), then we'd be flying! 😃
This is a great solve @leemager ! I really like this approach but how do you "force" a refresh of the Power Query connection every time you replace the weekly report file? Do you need to manually open up that file and click on refresh? I'm looking for an automated way to ingest many files on a daily basis without a table defined in them.
Sadly this is the fatal, and infuriating flaw of Power Query, it requires opening the file to refresh (the connections do have a 'refresh every x minutes' option but it doesn't refresh unless the file is open.
The way I've gone round this is to use Windows Task Scheduler to run a VB script which opens the files, refreshes all data connections, waits 10 seconds (enough for my cases, might need more for bigger files), then closes the file. This is what the vb script looks like:
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set objWorkbook = objExcel.Workbooks.Open("C:\Users\etc.xlsx")
objWorkbook.RefreshAll
WScript.Sleep 10000
objWorkbook.Close True
--
Feels like a hack but works like a treat, I run half a dozen of these around 5.30am every day so it doesn't bother me.
That was my fear as well, thanks for the detailed explanation 😀! I'm glad I wasn't missing anything, here's to hoping this improves in the future, but will build a similar workaround for now.
Dear Community Members, We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd. During this period, members will not be able to Kudo, Comment, or Reply to any posts. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!
We are excited to announce the Summer of Solutions Challenge! This challenge is kicking off on Monday, June 17th and will run for (4) weeks. The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions to as many questions as you can. Answers can be provided in all the communities. Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”) - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024 Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods. You must enter into each weekly Entry Period separately. How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different. Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers. At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing. Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner. A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random. Individuals will be contacted before the announcement with the opportunity to claim or deny the prize. Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners. Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event. ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE** Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber SolutionsSuper UsersNumber Solutions Deenuji 9 @NathanAlvares24 17 @Anil_g 7 @ManishSolanki 13 @eetuRobo 5 @David_MA 10 @VishnuReddy1997 5 @SpongYe 9JhonatanOB19932 (tie) @Nived_Nambiar 8 @maltie 2 (tie) @PA-Noob 2 (tie) @LukeMcG 2 (tie) @tgut03 2 (tie) Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 2: Community MembersSolutionsSuper UsersSolutionsPower Automate @Deenuji 12@ManishSolanki 19 @Anil_g 10 @NathanAlvares24 17 @VishnuReddy1997 6 @Expiscornovus 10 @Tjan 5 @Nived_Nambiar 10 @eetuRobo 3 @SudeepGhatakNZ 8 Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 3:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji32ManishSolanki55VishnuReddy199724NathanAlvares2444Anil_g22SudeepGhatakNZ40eetuRobo18Nived_Nambiar28Tjan8David_MA22 Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Week 4:Community MembersSolutionsSuper UsersSolutionsPower Automate Deenuji11FLMike31Sayan11ManishSolanki16VishnuReddy199710creativeopinion14Akshansh-Sharma3SudeepGhatakNZ7claudiovc2CFernandes5 misc2Nived_Nambiar5 Usernametwice232rzaneti5 eetuRobo2 Anil_g2 SharonS2
On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners. The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights. Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.
We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for. We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer. Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together. Here's to new beginnings and endless possibilities! If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport. To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages