CHunky Universe of Vigourous Astonishing SHarepoint :)

Export any web part from a SharePoint page

The blog post below describes the technical details about how Web Parts can be exported using a hidden tool in OOB SharePoint, though this requires manual assembling of a special url. If you are just interested in a solution for an easy Web Part Export function, just proceed directly to my new blog post where you can download my tool that you can add to your web browser.



Technical background

Almost all web parts can be exported from a SharePoint page. An exported web part  can be imported on another page or it can be used as a source in a module to provision pages. An exception is the XsltListViewWebPart, there you cannot enable exporting. I have used Glyn Clough’s method before which has worked although it is a complicated process. Now I have found another way for exporting any web part (even ListViewWebPart and XsltListViewWebPart) present on a page. A method that only involves a web browser.

How to export any web part

First, we need to find out the webpartid. To do so inspect the html markup with the web browser dev tools of your choice.


In SharePoint there is a hidden application page that exports web parts: /_vti_bin/exportwp.aspx. This page takes two query parameters:

  • pageurl. The absolute url of the page where the web part resides that you want to export
  • guidstring. The guid that is called webpartid in the markup on the page

So, suppose, you have this site: and a web part (id: 0c3adfe9-8f5d-4432-918a-42410e4e324d) on a page

This will be the resulting URL to export your webpart:

Paste it into the web browser address bar and you’ll download an xml file with your web part definition. This method works in SharePoint 2010 and SharePoint 2013 and even in SharePoint Online (Office 365).


Natalia Tsymbalenko. Get the list view web part convertable

Maurice Prather. Exporting a ListViewWebPart

SharePoint StackExchange

I am glad to update my answer on SharePoint StackExchange site and provide a much easier way of exporting any web part from SharePoint.

Bookmarklet (update 2015-10-21)

Finally there is a bookmarklet for making Web Part Export a lot easier. See my new blog post for more details:

27 responses to “Export any web part from a SharePoint page

  1. Pradip 2015-03-04 at 07:27

    Awesome, trick!! It helped a lot to me! Thanks!!!

  2. kennyr 2015-03-11 at 11:30


    Thanks for this – having a problem adding the list view part to a page on the root of the site – the list is located within a subsite – getting the following error message:

    “List does not exist
    The page you selected contains a list that does not exist”

    However, can add the imported webpart OK to a page on the subsite that contains the list – will this only work if adding the webpart to a page on the same site/subsite as the list?

    Thanks in advance

  3. JimH 2015-03-20 at 22:37

    Works like a charm, Thanks! We’re about to migrate to 2013, so I’m looking foward to testing this in 2013, given the changes to SPD.

  4. Amanda Sterner 2015-03-25 at 10:01

    Hi, I am trying to export a webpart from my site – but it’s not working. I get “error something went wrong”. Could you maybe take a look at my url and see if it’s correct? I am using SP Online. ebf04c7a-600b-4a16-bf28-a104372bef56

    Where is where my webparts is. I’m not sure if I miss some part of the url or not?

    Amanda – SharePoint rookie

    • Anatoly Mironov 2015-03-25 at 16:12

      Hi Amanda, the “pageurl” parameter is wrong. It points to the start.aspx which is an application page that is used for MDS. You should the real page url. You can see after the “#”. if it is too confusing, you could temporarily deactivate the MDS (Minimal Download Strategy) feature on the current web.

  5. derek gusoff 2015-06-25 at 22:10

    This is brilliant! Thanks for sharing this!

  6. Dan Walker 2015-08-15 at 11:00

    If you have a modern browser with developer tools IE, Chrome etc, you can just edit the html in place in the webpart and change allowexport to true [allowexport=”true”] while in editmode and it will then be able to be exported as usual from the webpart dropdown menu.

  7. Pingback: Export Any Web Part using a Bookmarklet - Bool Tech

  8. Pingback: Export Any SharePoint WebPart In a Click With This Bookmarklet or JavaScript : MIKE MORAWSKI | Programming & Tech Blog

  9. Iurii 2016-01-12 at 11:43

    Hello. Thanks for article. How I can create HttpRequest to _vti_bin/exportwp.aspx from provider hosted app or how I can get credentials from client context of provider hosted app?

  10. Apprentice 2016-02-25 at 05:37

    Dude, this is just the thing I was looking for, great post!

  11. carlintveld 2016-03-22 at 19:03

    Nice! Any way to export the audience targeting info as well?

    • Anatoly Mironov 2016-03-27 at 19:47

      Hi, The Target Audience is not a part of an “exportable” webpart definition. The Target Audience is saved on a particular webpart instance on a particular page.

  12. BInu 2016-08-30 at 16:13

    Hi, when i add to other site under same site collection, it is not working (List does not exists! error). How to fix this

  13. binuthazheveetil 2016-08-30 at 16:14

    Hi, when i added to another site (same site collection) – this is not working (list does not exists! error) – is there a fix for that?

  14. Fred 2017-03-24 at 15:52

    I encounter the same error like binu: List doesn’t exist.

    I’ve downloaded the file with your bookmarklet. But maybe I used the bookmarklet on the wrong site, to get the webpart?

    Thanks in advance!

    • Filippo Bertuzzi 2017-06-12 at 14:35

      You need to edit the .webpart with notepad and edit the WebId parameter, you will see is set as “00000000-0000-0000-0000-000000000000”

      To get the Id, use powershell
      Get-SPSite http://| Get-SPWeb -Limit All | Select Title, ID > C:\ListId.txt

  15. Pingback: Copy an XsltListViewWebPart from another SharePoint Site via PowerShell – The client-side solution | Second Life of a Hungarian SharePoint Geek

  16. Rockie 2018-04-18 at 15:12

    Awesome, great!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Daniel Chronlund Cloud Tech Blog

News, tips and thoughts for Microsoft cloud fans

Вула Чăвашла

VulaCV - Чăвашла вулаттаракан сайт

Discovering SharePoint

And going crazy doing it

Bram de Jager - Architect, Speaker, Author

Microsoft 365, SharePoint and Azure

SharePoint Dragons

Nikander & Margriet on SharePoint

Mai Omar Desouki

PFE @ Microsoft

Cameron Dwyer

Office 365, SharePoint, Azure, OnePlace Solutions & Life's Other Little Wonders


Me and My doings!

Share SharePoint Points !

By Mohit Vashishtha

Jimmy Janlén "Den Scrummande Konsulten"

Erfarenheter, synpunkter och raljerande om Scrum från Jimmy Janlén

Aryan Nava

DevOps, Cloud and Blockchain Consultant


SharePoint for everyone


Ryan Dennis is a SharePoint Solution Architect with a passion for SharePoint and PowerShell

SharePoint 2020

The Vision for a Future of Clarity

Aharoni in Unicode

Treacle tarts for great justice

... And All That JS

JavaScript, Web Apps and SharePoint


Mostly what I know and share about...

%d bloggers like this: