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

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
add comment

1 Answer 1

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
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.