Search code examples
sharepointsharepoint-2007revisions

SharePoint 2007 lists webservice - identify revision of list item


Using the lists webservice I retrieve the items from a list. In the XML returned I can see the attribute ows__IsCurrentVersion="1" which I assume is the same as the file object model (i.e. a boolean to say if it is current or not).

However I do not see a way to identify what revision it is? What should that attribute be?


Solution

  • By 'revision' do you mean version? If so, you are probably looking for one of these attributes:

    • ows_owshiddenversion is an Integer (ex: 8)
    • ows__UIVersion is an Integer (ex: 4096)
    • ows__UIVersionString is a String (ex: 8.0)

    *edit*

    Here is some more information after testing it using a Document Library. You should also check the other comments by Hugo and Janis, as they have some good information.

    ows_owshiddenversion   ows__UIVersion   ows__UIVersionString
    1                      512              1.0
    2                      513              1.1
    3                      514              1.2
    4                      1024             2.0
    5                      1025             2.1
    

    Most likely, what you are looking for is ows_owshiddenversion.