Тёмный

Add a Table to an Excel File - Save Email Attachment - Power Automate  

DamoBird365
Подписаться 12 тыс.
Просмотров 19 тыс.
50% 1

Are you looking to automatically add a table to an excel file using PowerAutomate? Let me show you how you can save an excel or indeed a CSV (and covert to Excel) attachment to a SharePoint document library and then convert the active cells of the worksheet into a Table.
00:00 Intro
00:20 Example Excel File
02:00 Power Automate Solution
06:10 Putting Flow into Test
06:29 How to overcome an error when overwriting an Excel file with a table
07:48 Waiting for the email and XLSX & CSV attachments
08:22 The flow run history
09:09 Checking out the files on SharePoint (Now with a table)
09:51 The error received when overwriting an Excel file with a table
11:18 Limitations
11:57 Summary, Like and Subscribe
CSV to Excel Video Demo
• CSV to Excel Power Aut...
Known Limits for Excel Actions
docs.microsoft.com/en-gb/conn...
Excel Office Scripts
support.microsoft.com/en-us/o...
Office Script:
function main(workbook: ExcelScript.Workbook,
TableName: string = "Table1",
SheetName: string = "Sheet1"
) {
// Get the worksheet by name
const selectedSheet = workbook.getWorksheet(SheetName);
// Alternatively, get the first worksheet (uncomment below and comment out above)
// const selectedSheet = workbook.getFirstWorksheet();
// Create a table using the data range.
let newTable = workbook.addTable(selectedSheet.getUsedRange(), true);
newTable.setName(TableName);} Please buy me a coffee www.buymeacoffee.com/DamoBird365 ☕

Наука

Опубликовано:

 

27 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@BorisDK1
@BorisDK1 2 года назад
The Filter... This is what I was looking for! Thank you!
@willywortel4623
@willywortel4623 10 месяцев назад
This is exactly where i’m looking for, thanks
@anshukumari8982
@anshukumari8982 2 года назад
This is amazing. You always provide a great solution. Thanks for such great videos!
@DhanushMunasinghe2008
@DhanushMunasinghe2008 2 года назад
WOW! Great video, enjoyed it a lot, Keep on Creating
@DamoBird365
@DamoBird365 2 года назад
Thanks Dhanush.
@malchicken
@malchicken 2 года назад
Great video, very helpful :). To help spread the word of your channel I’d recommend adding other suggested/related channels to your profiles channels page. I think maybe RU-vid algorithm uses that to know what related videos to show to people. Thanks for all the great demos :)
@DamoBird365
@DamoBird365 2 года назад
Thanks for the awesome tip, will look into that.
@Sese29yt
@Sese29yt 9 часов назад
Hey, question - will this script also work when transferring a table from a specific sheet from an onedrive file to a specific sheet in a sharepoint file? I'm referring to your other video - where you showed how to save a csv file and use the script to convert the file to XLSX (huge thanks by the way - great video
@ardeykurniawan1916
@ardeykurniawan1916 2 года назад
Mantap suhu 🙏 In Indonesian its mean : very nice teacher 😁
@DamoBird365
@DamoBird365 2 года назад
Thank you very much 😍
@amanraj3244
@amanraj3244 8 месяцев назад
Hi, please guide if the excel file have multiple sheets.
@pf3020
@pf3020 2 года назад
Thanks for the great video. In the last step to run the script - for new folks to scripts - where and in what format is the script stored so power automate can find it. e.g. if using an O365 group, documents folder in teams sp -- upload the script where?
@alexferris5483
@alexferris5483 Год назад
Yeah, I'm having the same problem. I created the OneDrive for Business file first including the script but when I get to this step I can't find the script to select it? What piece of the puzzle am I missing?
@Jezerypamela
@Jezerypamela 2 месяца назад
any luck wit this? @@alexferris5483
@Jezerypamela
@Jezerypamela 2 месяца назад
for some reason i cant select Filter Array 'Body' as a paramenter for the Apply to each "Select an output from previous steps. I do see attachments and other values, but not the Body output.
@DamoBird365
@DamoBird365 2 месяца назад
I seem to remember that new designer has a bug. You can write body(‘filter_atray’) as an expression.
@jibbsautomations
@jibbsautomations Год назад
Hi Damien, following this set up myself, I am hoping to be able to send an email using dynamic content from the List Rows action, but because we have to use Id for File and enter a customer name for Table, I'm not sure how this would work. Any suggestions?
@DamoBird365
@DamoBird365 Год назад
Hi Jeremy, I don't understand your question. Do you mean something like ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pwJ73jFEtDQ.html ?
@NishaGarg-sv8xw
@NishaGarg-sv8xw 2 месяца назад
I am doing exactly same as you have done but the Excel file created seems to be corrupted as it gives file format or extension is not valid. The file opens fine in browser mode but not in app. But when I am using the file further in the flow it is not able to find table and throws error so could please help
@DamoBird365
@DamoBird365 2 месяца назад
I’m not sure. Maybe share the details on the forum powerusers.microsoft.com/
@coryslip
@coryslip 2 года назад
Hello, could you make video how to get excel attachment from email to sharepoint list?
@DamoBird365
@DamoBird365 2 года назад
As a list item attachment or by adding items to a list based on rows of the excel file?
@coryslip
@coryslip 2 года назад
@@DamoBird365 Like if getting a email that excel attachment has no table, add rows from excel to sharepoint list item.
@prithapoddar7299
@prithapoddar7299 7 месяцев назад
the filter query is generating blank output. Can someone help
@DamoBird365
@DamoBird365 7 месяцев назад
conditions on strings are case sensitive - so you might need to check that?
@alanswidler6062
@alanswidler6062 2 года назад
Even when I use the method outlines at 7:00 - to get the metadata using path and then pass that ID to the list rows present in a table - It still cannot "see" the tables present in my file. What am I doing wrong? (I thought there might be a difference between oneDrive and sharepointe so I tried it with both and both run into the same issue)
@Brazoul
@Brazoul Год назад
Hi Alan, a workaround i have found is to initialize a variable with type string and have the value be the name of your table
@user-sg8nd8lw4c
@user-sg8nd8lw4c 8 месяцев назад
Hi, I get most of this, but I am not understanding where the Excel script resides? Is it in the inbound outlook file attachment?
@DamoBird365
@DamoBird365 8 месяцев назад
The office script? It lives in OneDrive or more recently it can be stored in SharePoint.
@freerangedingo
@freerangedingo 2 года назад
I am working thru these steps and in Create file I keep getting an error when trying to open the uploaded file that 'Excel cannot open the file xx because the file format or file extension is not valid.' Any suggestions? The file name is 01-20-2022GardendaleCDP.xlsx. I mention this because my first attempt had the date with "/" and Excel doesn't like that. My original attachment was also a .xls file not .xlsx, but then I replace it with a .xlsx file to eliminate that as a problem and I still get the error. And just to be clear, a file is being created but I cannot open it. I also tried creating a CSV. I could open that but it was jibberish. Thanks in advance.
@DamoBird365
@DamoBird365 2 года назад
Are you using an email attachment? Possibly a problem with you file content expression? You can provide more detail on the forum on my site or try the MS forum powerusers.microsoft.com/
@freerangedingo
@freerangedingo 2 года назад
@@DamoBird365 The problem was with the trigger. I was reusing a trigger. When I stopped reusing the trigger it worked just fine. Annoying but....
@VANDIK01
@VANDIK01 8 месяцев назад
Hello Damo, awesome video, can you help me with this error.....We were unable to run the script. Please try again. Runtime error: Line 15: Cannot read properties of undefined (reading 'getUsedRange') clientRequestId: 2fe1cf61-39bc-4f7c-852c-de92a8ada9e1 sometimes thanks in advance.
@VANDIK01
@VANDIK01 8 месяцев назад
My bad, I check the sheet name from the source file and it works, thanks Damo 👋
@DamoBird365
@DamoBird365 8 месяцев назад
@VANDIK01 brilliant 👍 thanks for letting me know.
@lornarodriguez7492
@lornarodriguez7492 Год назад
Hi, Do you have a video that could explain step by step a flow like this one but for the file to be overwritten in Microsoft teams. Same logic, email is received containing an attachement and the information in the attachement needs to be saved in the same file all the time that will live in Teams. Also i was checking on my ends about the Office Scripts, but i did not find anywhere a way to add this into Excel, Any help on this would appreciate it as well. Anyone can comment.
@DamoBird365
@DamoBird365 Год назад
Hi Lorna, Office Scripts is something that can be disabled by your IT. If the automate tab isn’t visible, it’s disabled ☹️ you could look at the Graph API ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mNwEk7hLdfE.html. By overwrite, do you mean overwrite the file or the data within the file? You’ll always have to save the outlook attachment to access the data but the process of overwriting the file vs the content of the file will be different. What’s the use case? You can also ask on the forum powerusers.microsoft.com/
@lornarodriguez7492
@lornarodriguez7492 Год назад
@@DamoBird365 i was afraid that was the case TT_TT .. The file i have with the table format will be living in Microsft teams, when i receive the email with the attachement, this attachement will be in an Xlsx file but the information is not set as a table, so i want the content to be overwritten in the Teams files evertime i get this email with the no table excel file. i need the information to be updated in teams everytime this email comes in... I found an option for this, but its for one drive, im having a really hard time finding one that will work with microsoft teams.
@DamoBird365
@DamoBird365 Год назад
@@lornarodriguez7492 Teams is SharePoint but I think the forum is a better place to discuss this one.
@lornarodriguez7492
@lornarodriguez7492 Год назад
@@DamoBird365 Thank you
@lornarodriguez7492
@lornarodriguez7492 Год назад
I got it to work now, and its awesome! You are great! Kudos to you on this video.
@kiranramachandran2103
@kiranramachandran2103 8 месяцев назад
When I test the flow, everything runs successfully, but the Excel file uploaded to sharepoint does not contain any tables or the data from the csv file in the emial at all. Instead there is just one line at the very top with a bunch of numbers and letters. Any suggestions on where I could be going wrong?
@DamoBird365
@DamoBird365 8 месяцев назад
No idea if I’m honest. You need to look back at the history to try and understand why.
@kiranramachandran2103
@kiranramachandran2103 8 месяцев назад
​@@DamoBird365 I was able to get this to work, but am having one more issue. My goal is to combine this automation with what you have demonstrated in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pwJ73jFEtDQ.html . I am trying to transform a file from csv to xlsx with table included, and then use that new excel file to filter data/ create sub tables to be sent to various people. I have successfully followed and created flows for both videos individually, but am facing many roadblocks when trying to combine the two. Do you have any videos discussing this or any advice? Thanks so much, your videos are a lifesaver.
@DamoBird365
@DamoBird365 8 месяцев назад
@@kiranramachandran2103 are you trying to turn an existing excel file into multiple excel files and email them to separate recipients? Presumably based on a filter and without using office scripts?
@kiranramachandran2103
@kiranramachandran2103 8 месяцев назад
@@DamoBird365 I am trying to do exactly what you do in this video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-pwJ73jFEtDQ.html , . I would like to create individual HTML tables based on an excel file exactly how you describe in the linked video. However, instead of selecting an excel file from onedrive, I would like to use the excel file I created in sharepoint through this flow of converting the csv file to excel and adding a table, the process detailed in this video. Combining the two flows, however, has brought many errors/problems
@DamoBird365
@DamoBird365 8 месяцев назад
@kiranramachandran2103 you could just convert the csv to json.
@TCEI23
@TCEI23 Год назад
Why won’t it save an an excel in my SharePoint library?
@DamoBird365
@DamoBird365 Год назад
Very hard to offer any advice with additional info. You might want to ask on the official forum powerusers.microsoft.com/
@jallabalaram4331
@jallabalaram4331 Год назад
Hi Any One Have Idea How to append Excel tables side by side in power automate @DamoBird365
@DamoBird365
@DamoBird365 Год назад
What do you mean side by side? Are you trying to join tables in separate files based on a key value?
Далее
Extract HTML Table from Email in Power Automate
22:33
Monster shops mini mart 👻🛒 #shorts
00:49
Просмотров 11 млн
Canvas App: Export Gallery data to CSV file using Flow
35:14