Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

How can I update the View title of a SharePoint 2007 list using the views.asmx web service? According to MSDN the Views.UpdateView web method takes a parameter viewProperties =

An XML fragment that contains all the view-level properties as attributes, such as Editor, Hidden, ReadOnly, and Title.

But what is the structure of this XML fragment? I tried supplying <ViewProperties Title='MyCustomView' /> but always get an SOAP exception indicating that the viewProperties has invalid value.

share|improve this question
add comment

2 Answers 2

The structure of the XML fragment isn't really documented but there's some clue to it in SPView.PropertiesXml:

<View Name="{7591FC7D-8304-42C7-9456-09F4241AC6F8}" 
    Type="HTML" DisplayName="View_Name" 
    Url="Lists/List_Title/File_Name.aspx" 
    BaseViewID="1" />

Try using PowerShell to interrogate an existing view and find out what its PropertiesXml value is.

If you still don't have any luck and have to use web services then you will just need to recreate the view. This is a common problem when using the SharePoint SOAP web services - they are lacking in functionality.

share|improve this answer
add comment

I was successful changing view Properties with the follow xml syntax

try < viewProperties>< View Title="MyCustomView" />< /viewProperties>

or in Sharepoint 2010 the title is the displayname

< viewProperties>< View DisplayName=""MyCustomView"" />< /viewProperties>"

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.