Tags » Client Object Model

Get SP Group Members

ClientContext ctx = new ClientContext(siteURL);
GroupCollection groups = ctx.Web.SiteGroups;
ctx.Load(groups);
ctx.ExecuteQuery();
foreach (Group group in groups)
{

UserCollection users = group.Users;
ctx.Load(users);
ctx.ExecuteQuery();
Console.WriteLine(“Group: ” + group.Title); 13 more words

Client Object Model

Enable Versioning

ClientContext ctx = new ClientContext(siteURL);
string[] Customers = {“Abbott Nutrition”,”Aryzta”,”Aunt Millies”};
foreach (string cust in Customers)
{
Console.WriteLine(“Enabling Versioning for: ” + cust);

List Customer = ctx.Web.Lists.GetByTitle(cust); 16 more words

Client Object Model

Get_all_users_from_User_Information_list

Each site collection has a hidden list which stores all the users who ever accessed the site. There is no out of the box clean up process to clean it up. 211 more words

Client Object Model

Get all the activated features of a site

you can go to “Site Settings => Manage site features” to find out what are the activated features. But if you want to get hidden features as well you can use the client object model to do that. 52 more words

Client Object Model

Attach a file to SharePoint list item using client object model

How to attach a file to a SP List Item using SP Services and Soap Client.

If you try to attach a file using client object model when the list item does not have any attachments you will get an error. 101 more words

Client Object Model

Move files in a document library with JavaScript

Moving files inside a document library can be a requirements coming from the customer. Luckily, JavaScript is offering a simple solution, without going into server side development. 730 more words

SharePoint