Sep 11 2023 01:13 PM
Is there anyway to create a link to a SharePoint list that will automatically start the process of exporting it into excel? Or a way to create a link that'll kick off a PowerAutomate workflow that will do this?
Sep 11 2023 02:37 PM
I do not know a direct way to create a link in SharePoint Online that will automatically export a list to Excel when clicked. However, you can achieve this functionality using Power Automate (formerly known as Microsoft Flow). Here is a general outline of how you can set this up:
Please note that the exact steps and options may vary depending on the updates and changes made to SharePoint and Power Automate since my last knowledge update in September 2021. I recommend checking the latest documentation for SharePoint Online and Power Automate or consulting with your organization's IT department for the most up-to-date guidance.
Keep in mind that SharePoint Online provides various ways to work with list data, and Microsoft regularly updates its services, so there may be more streamlined options available now for exporting list data to Excel.The text and the steps were created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
Was the answer useful? Mark them as helpful and like it!
This will help all forum participants.
Sep 11 2023 10:51 PM
SolutionHi @Objulen,
yes you can.
First get the ID of the list you want to export.
Go to "Gear->List Settings". Now copy the url, it should look like this
https://<tenant>.sharepoint.com/sites/<site>/_layouts/15/listedit.aspx?List=%7Bbcb327c9-a3b3-404f-a623-e91a85caf7a7%7D
Remove everything up to "List="
%7Bbcb327c9-a3b3-404f-a623-e91a85caf7a7%7D
This is url-encoded.
Replace "%7B" with "{" and "%7D" with "}".
There might by some "%2D", replace them with "-"
{bcb327c9-a3b3-404f-a623-e91a85caf7a7}
Now append that to the following url
https://<tenant>.sharepoint.com/sites/<site>/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&CacheControl=1&List=
You get this
https://<tenant>.sharepoint.com/sites/<site>/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&CacheControl=1&List={bcb327c9-a3b3-404f-a623-e91a85caf7a7}
If you open that link, your browser will download an .iqy File. If you open that using Excel, you will have your list exported to excel.
Best Regards,
Sven
Sep 12 2023 06:27 AM
Jul 25 2024 12:41 PM - edited Jul 25 2024 12:43 PM
Thanks...
You can also include de view on the link... just append "&View={ID view} at the end. The ID view, you can get it the same way you got the list ID, as Sven explained, just use the text after "View=". It will also be URL encoded.
Sep 11 2023 10:51 PM
SolutionHi @Objulen,
yes you can.
First get the ID of the list you want to export.
Go to "Gear->List Settings". Now copy the url, it should look like this
https://<tenant>.sharepoint.com/sites/<site>/_layouts/15/listedit.aspx?List=%7Bbcb327c9-a3b3-404f-a623-e91a85caf7a7%7D
Remove everything up to "List="
%7Bbcb327c9-a3b3-404f-a623-e91a85caf7a7%7D
This is url-encoded.
Replace "%7B" with "{" and "%7D" with "}".
There might by some "%2D", replace them with "-"
{bcb327c9-a3b3-404f-a623-e91a85caf7a7}
Now append that to the following url
https://<tenant>.sharepoint.com/sites/<site>/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&CacheControl=1&List=
You get this
https://<tenant>.sharepoint.com/sites/<site>/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&CacheControl=1&List={bcb327c9-a3b3-404f-a623-e91a85caf7a7}
If you open that link, your browser will download an .iqy File. If you open that using Excel, you will have your list exported to excel.
Best Regards,
Sven