web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Sharepoint list auto e...
Power Automate
Answered

Sharepoint list auto export to excel

(0) ShareShare
ReportReport
Posted on by

Would anyone have a flow suggestion that will, in Powerapps, when a button is pressed, that the data from my SharePoint list could be exported to an excel workbook and then send the excel file as an attachment in Outlook? 

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @Anonymous,

     

    I have made a test on my side and the flow works well. Please take a try with the following workaround:

    1. Use Get items to get all the items, then configure the insert row, and insert the contents of the corresponding field of the list item into the corresponding Excel table.
    2. Configure Get file metadata/Get file content to get the file name and file content respectively.
    3. Configure the content obtained above in Attchments.

    Image reference:

    60.PNG61.PNG

    Please take a try.

     

    Best Regards,

    Barry

  • Community Power Platform Member Profile Picture
    on at

    @v-bacao-msft Thank you for the tips! Do I need to have an excel workbook already created? 

  • v-bacao-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Yes, you need an Excel file that has already been created, which needs to contain an Excel table.

     

    Best Regards,

    Barry

  • v-bacao-msft Profile Picture
    on at

    Hi @Anonymous,

     

    Have you tried the workaround I provided? I want to know if this will help you.

    Or you need further assistance, please feel free let me know.

     

    Best Regards,

    Barry

  • dkent Profile Picture
    33 on at

    I was attempting your solution but for some reason I do not have an action to insert row. I only have the following excel actions,

    dkent_0-1619053765386.png

    DO I have the wrong license?

     

    DWTK

  • Community Power Platform Member Profile Picture
    on at

    @dkent look for Excel Online (Business) - Add a row into a table

  • Community Power Platform Member Profile Picture
    on at

    I'm stuck on this part (see image):

    I chose OneDrive Business for Location (I assumed it wanted a local location to store the excel!?)

    I chose One Drive as Document Library (same logic as above)

    Now comes the tricky part .. at File ... I assumed I would choose the (already created excel file, on my onedrive) excel file that will be used to deposit the list's items (but no... i have to choose some nonsense "files" that appear there)

    For Table whatever i chose i got an error.

    How do i go about just : get the items of the list and dump them into an Excel file stored locally!?

    santee_0-1655389732845.png

     

  • Community Power Platform Member Profile Picture
    on at

    @Anonymous I suppose the file you want to write to already has a table in it. But of course you first need to find it
    Do you have multiple libraries in your OneDrive (like me, I just made a test, as I normally use SharePoint)?

    Beat_0-1655390128009.png

     

    If you try each of them, you may find what you're looking for.
    Another explanation is that you have too many files in the root directory of your OneDrive. 

    I had this issue in a flow of mine (it still worked, but when wanted to change the file, I couldn't find it in that browse list). It seems there is a limitation of how many files it can retrieve. It turned out that there were more than 256 files in my folder. After deleting enough of them, I could find the file again. So I suggest you cleanup your OneDrive root folder by deleting files or moving them into a folder. Please let me know if this did the trick.

  • Community Power Platform Member Profile Picture
    on at

    You are correct. I had 2 'OneDrive' choices (i assumed it's just a mistake). Choosing the second one, did the trick.

    I did create an Excel file, I did create a table (keeping default naming Table1). I even put my headers inside the table.

    Next issue ... the flow doesn't pull all data and for some columns instead of values (text, numbers, etc) .. i get some stuff with {} and @

  • Community Power Platform Member Profile Picture
    on at

    How to fix this? I get these instead of the actual value ... it happens for more columns

     

    {"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference","Id":8,"Value":" Healthcare"}

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard