Acronym for Client Side Object Model. It comprises both managed (.NET) and JavaScript object model (JSOM)

learn more… | top users | synonyms

1
vote
1answer
31 views

SharePoint 2013: Creating custom list in SharePoint using CSOM

I'm having a difficult time creating custom lists using the SP JS API. Here's what I'm attempting to do: var lciTasksList = new SP.ListCreationInformation(); lciTasksList.set_title('ProjectTasks'); ...
3
votes
2answers
415 views

Creating a SharePoint Wiki Page via JavaScript and REST or CSOM

I'm fairly new to developing SharePoint 2013 Apps, and I was tasked to customize the Create New Wiki Page for a Site. The user has to type in the Title, I do some processing, and then when everything ...
1
vote
3answers
43 views

Programatically Modifying SharePoint List Item-level permissions using CSOM

I have a SharePoint 2013 (on-premises) document library named “Reports”. It inherits the parent site’s permissions (by default). It has a column named “AssignedTo” of type People or Groups (mandatory ...
0
votes
1answer
19 views

Add URL to the Taxonomy Terms Created using CSOM

I have been successful in creating terms in the term store using CSOM code. But I have been not been able to set URL for those terms. Small code snippet - TermSet termset = ...
0
votes
1answer
26 views

Get a Content Type by Name (Title) using CSOM

I am applying a temporary fix to some CSOM code whilst a more permanent fix is given to me hence I want to create the equivalent of ctx.Web.Lists.GetByTitle("Contoso ...
1
vote
2answers
348 views

sharepoint csom get address and phonenumber from current user

I am building some CSOM code in my DispForm.aspx. I try to get the current user from the context. This works and I can get the loginName, id, title and email. But I would like to have the address and ...
0
votes
0answers
7 views

how can access indicator status with client side object model SharePoint 2010 with c#

i want to access indicator status in kpi list in sharepoint 2010. using (ClientContext context = new ClientContext(siteUrl)) { context.Credentials = new ...
1
vote
1answer
57 views

Version Conflict issue with JavaScript Client Object Model code

I'm running into an issue where I'm trying to modify a metadata field on a document within a document library. My code, will check out the document, update the metadata field and then check in the ...
0
votes
0answers
15 views

Issue in retrieving All users from a Person or Group type column using C# COM for each List Item

I have a requirement like this: There is a SharePoint 2013 document library, say, MyReports. MyReports has a column "AssignedToUsers" which is of type Person or Group (multiple selections enabled). ...
1
vote
1answer
390 views

Is it possible to programmatically add page items to Enterprise Wiki using CSOM or REST?

Like a lot of us I'm green when it comes to SharePoint development. I've been tasked with moving MediaWiki content over to a SharePoint Enterprise wiki. At this time I do not have access to the server ...
4
votes
2answers
68 views

Hide document library using CSOM

I want to prevent users from accessing some document libraries. I have used the following code but it didn't work, Any solution? doclibraryinstanse.Hidden = true; doclibraryinstanse.Update(); ...
0
votes
1answer
47 views

People search using CSOM API

I am using CSOM in API. I used following code for content search in documents and now want to integrate People search which can search users from sharepoint website using CSOM. ...
2
votes
2answers
1k views

Setting Search Center URL in SharePoint 2013 using Javascript CSOM

In SharePoint 2013, I am trying to access Search object through JavaScript CSOM. I want to know the object which can give me the access to Search Settings under Site Settings. I tried looking under ...
2
votes
2answers
925 views

SharePoint 2013 APIs for anonymous and/or mobile access

In SharePoint 2013 (Preview), does any of the APIs (csom, REST, etc.) work with anonymous access? With mobile access? I haven't found any reference to this in the documentation. I did a quick test ...
3
votes
1answer
42 views

Determine “normal” Users from User Collection loaded with CSOM (provider-hosted App)

In my provider-hosted app I load the UserCollection from SharePoint by CSOM (Client Side Object Model), like this: UserCollection users = web.SiteUsers; ...
0
votes
0answers
17 views

Improve performance of generating thumbnails from pdf file

I have developed provider-hosted App and used Aspose.pdf (code below) to convert PDF files stored in document library to jpg files, so i can view it as thumbnails. I have issue in performance as I ...
2
votes
1answer
35 views

Check if a document set exists

I'm trying to determine whether a document set exists - if it doesn't I'll send it off to another function to create but I'm not getting the correct value back from my query. I think it has to do ...
0
votes
1answer
407 views

Sharepoint 2013 App Cant Update Fields on Lists in parent web

I have a Sharepoint 2013 O365 App that is Autohosted. It is doing a simple list item creation on a remote sharepoint list in the site that owns the app. I have added app permissions of all kinds to ...
1
vote
1answer
92 views

Proper way to check if Web.Title is available (CSOM)?

We can check if Web.Title is available this way: if (!_clientContext.Web.IsPropertyAvailable("Title")) { _clientContext.Load(_clientContext.Web, w => w.Title); _clientContext.ExecuteQuery() } ...
0
votes
2answers
54 views

How do I move files from one document library to another using JSOM?

I have two document libraries on the same web, and am wanting to move the files from one to the other using JSOM/CSOM. Can anyone please shed some light on how to do this? Thanks
2
votes
1answer
30 views

Accepted way of checking for SharePoint CSOM in JavaScript?

What I'm trying to do is build a dual purpose JavaScript that might run inside or outside of SharePoint, so I need something like this: if(SharePoint CSOM Exists) { //Do a bunch of stuff involving ...
2
votes
2answers
338 views

Modify Global Navigation CSOM

Can I modify the Global Navigation by using CSOM against a publishing site in SharePoint Online. What I would like to achieve is to hide some of the navigation elements in the global top navigation.
0
votes
2answers
30 views

Cannot update list item properties Server Object Model in context of SP, can update via CSOM

I am trying to update a SPListItem metadata properties after inserting this document into a document library. Fortunately though the CSOM, this is quite easy: private void ...
1
vote
0answers
19 views

Creating a navigationnode of type Link from csom

I have a publishing enabled web that I want to add a link to, not a heading. var node = web.Navigation.QuickLaunch.Add(new NavigationNodeCreationInformation { Title = "Dokument", Url = web.Url + ...
0
votes
1answer
267 views

How to upload a file attachment to a new list item using Sharepoint Online remotely

I need to upload a file to a new list item in Sharepoint Online from a clientapp. The list exists allready, but I create new list items and tried to upload file as attachements. I tried it over CSOM, ...
1
vote
1answer
296 views

Set request access email address through CSOM

In the server side object model it's possible to set the request access email address through the property SPWeb.RequestAccessEmail (MSDN). Since we are moving our SharePoint tenant to Office365 I'm ...
3
votes
2answers
151 views

Creating variation labels using CSOM in sharepoint 2013

Can anyone tell me how to create variation labels using CSOM?
0
votes
2answers
19 views

Is there a place to upload open source code for others to utilize?

I am very new to SharePoint just began working in it within the last month. I have been creating Taxonomies within the Managed Meta Data for a company website, and I have run into a lot of issues with ...
0
votes
2answers
30 views

I am planning to use GetFieldValueAsHtml in CSOM world and I am not able to find that method for FieldMultiLineText class

I am planning to use GetFieldValueAsHtml in CSOM world and I am not able to find that method for FieldMultiLineText class Let us know how to get this method in the CSOM world. But that method is ...
2
votes
0answers
19 views

SPListItem.BackwardLinks equivalent in CSOM, JSOM, or REST?

In the Server API for SPListItem there is a property called BackwardLinks that returns a collection of items that link to the item. I don't see the same property in CSOM, JSOM, or REST. Is there a ...
1
vote
0answers
39 views

Setting SPWeb.AlternateCssUrl via CSOM or JS

According to this Microsoft Office 365 Blog post the SharePoint CSOM (.Net, REST, JS) has been enhanced to support setting SPWeb.AlternateCssUrl: ...
1
vote
4answers
43 views

CSOM programming - for regular user

Should I as a SP Admin be concerned about when a professional contract developer uses CSOM? I just want to make sure the code is good. What is your opinion?
0
votes
1answer
104 views

Remove role from group programmatically, CSOM

I would like to remove the contribute permission level from a specific group. I use this code: Group group1 = web.SiteGroups.GetByName("StudentsKls11"); RoleDefinition readDef = ...
1
vote
1answer
430 views

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010?

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010???? I am using following Code... // Create new list for restore List Item from List ...
1
vote
0answers
11 views

How do I create a page in a SharePoint host site from azure hosted app?

When I run the following code from azure with the app permissions 'Full Control' I can successfully create a page in the parent SharePoint(online) site. If I change the permissions to 'Manage' at site ...
1
vote
0answers
25 views

How to auto generate parent MMD columns based on child MMD columns?

This is the structure of one of my Term Sets. I have a Site Column called Record Type (Deeds, Agreements, Permits) I have a Site Column called Deed Type (D1, D2, D3) I have a Site Column called ...
0
votes
1answer
37 views

check if list has already been created

I've written a bit of powershell for creating a list just wondering how add say an if statement to check if its already been created. In Client side not server side here is my code : param( ...
2
votes
1answer
94 views

Create list and add a choices column to default view

I would like to create a link list, and then add a choice column (Field) with two choices to the default view. Using the following code i am able to create the list and add a column (Field) to the ...
3
votes
1answer
63 views

Access Denied on use of AppPrincipalManager

We are getting the following error Access denied. You do not have permission to perform this action or access this resource. when executing the following code AppPrincipalManager ap = ...
1
vote
1answer
207 views

How to use CSOM/Powershell to update list item(s) in O365 from CSV

Not a programmer, but need to get a job done. Using Powershell and CSOM I've found examples and been able to import CSV into a list as new items. That is working. Here is a code snippet I'm using ...
1
vote
2answers
268 views

Programmatically add ListViewWebPart to Wiki Teamsite homepage with CSOM in SP2013

Someone who can point me into the right direction? Code snippets? Thanks in advance!
3
votes
0answers
133 views

Change SiteLogo via csom in SharePoint 2013

Regarding to this Question link. How can i change the siteLogo to a new one? Is it even possible to do it from a ConsoleApplication via CSOM?
1
vote
3answers
90 views

Add items to list programmatically

I would like to create a menu from the listtemplate Promoted Links, with several tiles. I use the following code to create the list, and create new list items: ListTemplate listTemplate = ...
0
votes
1answer
71 views

Setting value of Enterprise Keywords using CSOM

I have included the enterprise keywords column in my contenttype and list and I try to set the value using the managed CSOM. I just used the default already existing column so the column name is ...
2
votes
2answers
342 views

Create list from custom template using csom, c#

I would like to create a list based on a template (.stp uploaded to the list template gallery), it almost works with this code: ClientContext context = new ClientContext("<Your Site URL>"); ...
1
vote
0answers
43 views

Open Quick Launch link in new window (CSOM)

How to add a link opening in a new window/tab to the quick launch menu using CSOM? There is some discussion about the server-side here and here but they are dealing with the Properties collection of ...
0
votes
1answer
45 views

Based on URL how to set Global navigation nodes (CSOM) node as active - javascript

I want to use the same navigation everywhere (mysite, teamsites ..) So I'm fetching the (managed navigation) global navigation by csom in the masterpage. The global navigation is only going to show ...
3
votes
1answer
229 views

Deploying and Installing Sharepoint apps into App catalog using CSOM

Can anyone suggest me on how to use SP.AppCatalog() in JSOM or CSOM and get the all apps in AppCatalog, Not AppInstances..
2
votes
2answers
28 views

SharePoint group not visible

I created a new SharePoint group using UI. I do not see the group using: $web.Groups | select Name Why? (I need to access to the group by CSOM but the group is not found)
0
votes
0answers
23 views

How can I return differences between versions and access properties that changed?

i have a list in SharePoint 2010 that has fields "title,count" .one of the fields (count) possible to change. I FROCE TO USE CSOM CLIENT SIDE OBJECT MODEL ... NO SHAREPOINT.DLL BUT ...