problem importing webparts

Jun 7, 2012 at 12:45 PM

Hi Winston,

In our project we are trying to use your script to export and import web part pages from one environment to another.

For that we are using Export-WebParts() & Import-WebParts() methods defined in SharePoint.2010.WebParts.ps1.

In case of CQWP the web parts are getting imported properly. But in case of List View web parts it's not working properly. We have customized the view of the web part (selected few extra columns, added sorting and filtering). These settings are getting exported properly in XmlDefinition property of webpart. But while importing, the XmlDefinition property is getting ignored altogether. The view that I get in the page is same as what I've defined in list settings, not the one that I've customized on the source page.

Please let me know how to handle this.

 

Thanks & Regards,

- Vivek Athalye