This project has moved and is read-only. For the latest updates, please go here.

GetListItemChanges to get Version History

Jan 23, 2013 at 3:06 PM
Edited Jan 23, 2013 at 3:11 PM

Hi all,

i'm trying to build a SharePoint page with a DFWP that Displays the complete VersionHistroy all items of a SharePoint List and the list entries.

since the GetVersionCollection isn't very helpful i try my luck with the GetListItemChanges. But i always get error msgs. by the Server.

This is my code i'm using:

	operation: "GetListItemChanges",
	async: false,
	listName: "ListName",
	viewFields: '<FieldRef Name="Title" />',
	since: "2012-01-01T00:00Z",
	contains: '<FieldRef Name="Title" /><Value Type="Text">ED8767</Value>',
	completefunc: function (xData, Status) {}
I'm not sure what to put in the 'contains:' field. When i'm not using the 'contains' field th error msg. is:
<errorstring xmlns="">Cannot complete this action. Please try again.</errorstring> <errorcode xmlns="">0x80004005</errorcode>
thats the error msg. with the 'contains' field:
<errorstring xmlns="">One or more field types are not installed properly. Go to the list settings page to delete these fields.</errorstring> <errorcode xmlns="0x81020014</errorcode>">">0x81020014</errorcode>
any suggestions? best, Matthias
Jan 23, 2013 at 3:41 PM

Did you look at GetVersions?


Jan 23, 2013 at 4:28 PM

Hi sympmarc,

yes i've looked at GetVersion. Sadly GetVersions works only for Document Librarys and not for SharePoint Lists.


Jan 24, 2013 at 1:04 PM

Hi all,

i've found a solution without using the webservices. You can always access the Version history by this URL: http://<server>/<site>/_layouts/versions.aspx?list={litsID}&ID=<itemID>

I've done a simple http get with $.get(...) and append the table on the received Website with the verision history to some html element on my target Website. Done!




Jan 24, 2013 at 2:30 PM

Inventive AJAXing is an extremely useful toolset! Oftentime Microsoft has the info you want spread across multiple pages.