SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I found that the "EnablePeopleSelector" property changes the calender into a group calender.

I am unable to set the value for tat property using csom or webservices.. My webservices snippet is as follows

    Dim xDoc As New System.Xml.XmlDocument()
    Dim ndProperties As XmlNode = xDoc.CreateNode(XmlNodeType.Element, "List", "")
    Dim ndPeopleSelector As XmlAttribute = CType(xDoc.CreateNode(XmlNodeType.Attribute,"EnablePeopleSelector", ""), XmlAttribute)



    ndPeopleSelector.Value = "True"


    ndProperties.Attributes.Append(ndPeopleSelector)
    Dim xn As XmlNode = list.UpdateList(node.Attributes("Name").Value, ndProperties, Nothing, Nothing, Nothing, Nothing)

Where have i gone wrong? Is there any possible workaround using either csom or Webservices.

share|improve this question

Here is how you can do it in CSOM:

        var web = SPContext.Current.Web;
        SPList list = web.Lists["Calendar"];            
        list.EnablePeopleSelector = true;
        list.Update();
share|improve this answer

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.