Operations in SharePoint
Now that you know how to handle the CRM 2011 SharePoint site structure, let’s look at the corresponding operations in SharePoint 2010. SharePoint 2010 offers many services which allow you to interact with its contents. We will look briefly at the Lists Service and the Copy Service, as follows:
• Lists Service—Two useful functions are GetList and AddList. GetList will retrieve a list, and AddList will create a list. Here is a sample function that tries to retrieve a list, and if it does not exist, it will create the list:
public XmlNode processList(string listname, string listDescr, int libtype) { XmlNode result = null; try { result = listSvc.GetList(listname); ...