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

learn more… | top users | synonyms

0
votes
1answer
44 views

Is there a reliable way to get a Date Time with the proper timezone into a list?

I have current project where they want a time related deadline inserted into a task list. No matter what I use for the date/time it always seems to be off by and hour or two. I am in EST using my ...
0
votes
1answer
81 views

get items in specific summary task folder in SharePoint 2010 via client object model in c# [duplicate]

i want to get items in android via web api web service. when user click on items web api return values step by step from sharepoint task list. using (ClientContext context = new ...
0
votes
0answers
25 views

How can I get my CSOM code to authenticate using Windows Credentials when FBA is in use?

The title should really say it all: Web Application with both Windows (NTLM) and FBA CSOM and REST requests are both failing with 403 (Forbidden) ClientContext.AuthenticationMode set to "Default" ...
1
vote
2answers
83 views

How to check if ListTemplateType (enum) is list or library?

Is there some helper method for example in CSOM API to check if Microsoft.SharePoint.Client.ListTemplateType is a list or a library, something like IsLibrary(ListTemplateType type)
3
votes
0answers
84 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..
0
votes
1answer
60 views

How to get a farm property with CSOM?

In my farm solution I have created a farm feature to render additional links in the chrome control, from the FARM object property bag. Basically I took this example: ...
3
votes
1answer
61 views

Programatically adding an app to a site O365

Newbie question. With CSOM how to I add an app to a site. More detail: manually you can select options and then "add an app" The one in particular I am interested in is the Tasks. I can build any ...
2
votes
2answers
160 views

SharePoint 2013 Organization Chart [closed]

im in need of help here. I have to render this code from a sharepoint list instead of this json string. How can i do that? Heres the link to the chart: http://librerias.logicas.org/lib_gg_orgchart. ...
1
vote
3answers
220 views

2010: Custom List Template ID

I searched everywhere, but could not find a solution that worked for me. We've created a default document library, changed it a bit and saved it as a new document library template from the user ...
5
votes
3answers
259 views

Get if user has permissions to access to a Cloud App for Sharepoint 2013 with JavaScript CSOM or Rest Api

I have developed a Cloud App for SharePoint 2013 on an office 365 server, and I figured out that to set the user permissions(who has access to it) for that app can be find over ...
1
vote
2answers
177 views

SharePoint 2013 Online JavaScript CSOM CEWP

I am in a need of some guidelines according developing in SharePoint 2013 Online. I want to learn developing on a sharepoint 2013 online site. Im using Content editor web parts and want to retrieve a ...
1
vote
2answers
164 views

Check if site exists from client side

I am currently running the following code to check if there is a site with a title equal to my string myname. This code is however very time consuming because I have a large number of sites. Is ...
0
votes
2answers
352 views

Add ListItem to List using client object model

I am able to add new list item in sharepoint list using the CSOM using the below code : ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); ListItem ...
1
vote
1answer
112 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 ...
1
vote
2answers
245 views

Upload file into Sharepoint Document set

I'm trying to upload a file to a document set which is located in a library. Im using C# and the Sharepoint Client Object Model - Library, but I can not find any documentation to do this task. I ...
1
vote
1answer
280 views

Making Presaveaction() wait for SP.UI.ModalDialog response

I am using the Presaveaction() to perform pre-new/edit form validation. Once all fields have been validated successfully I would like to offer my users the ability to 'Save and Exit' or 'Save and ...
0
votes
2answers
94 views

CSOM: Get Url name of list

What is the best way to get the url name of the list using CSOM. For example, we have a list /sites/site/Lists/MyList/ We need "MyList". We could get this, for example by parsing ...
0
votes
1answer
44 views

ContentType Title based on ContentTypeId

How can I find out the title of ContentType based on the ContentTypeId, with Sharepoint 2010 Client Object Model(C#). I have ContenttypeId, I need the title. I just need to know, is there a way? ...
2
votes
1answer
149 views

Is there a CSOM equivalent of SPFile.SPCheckOutType

I want to determine the checkout status of a document using the Client Side Object Model rather than the Server Object Model. Does anyone know how to do this? Or even whether it's possible? Can it ...
0
votes
1answer
126 views

Working on the User Profile and Mysite web

I just trying to get few information from a user (like if the mysite web exits) and working with that. The main problem is understand if the user has a mysite web and delete it if exists but to do ...
1
vote
1answer
63 views

How to debug this error when accessing host web from a app

I'm really having trouble debugging this simple task: Read items from the host web in an app. I've tried several examples but getting various errors. Problem is that the errors are in Norwegian. That ...
3
votes
1answer
147 views

Get web part TypeName using CSOM

Can we retrieve the TypeName of a web part using CSOM?
4
votes
3answers
165 views

Add web part so that we can retrieve it later via CSOM?

How to add a web part on page in such a way that we later on can find it (using CSOM) - Can we somehow store identifier information to the web part? Say user could change the title and description (so ...
3
votes
1answer
91 views

How to get list using CSOM (best practice)?

What would be the complete code for a best practice to get a list using CSOM? A couple of related questions: Should we always return all the lists first, and then run a linq query to select the ...
3
votes
3answers
1k views

Retrieve list item using CSOM on SharePoint online isn't working

I've been stuck on this problem for couple days, I develop app model on SharePoint online using provider hosted model. From clientwebpart, i want to access sharepoint list item. I can access list ...
1
vote
2answers
110 views

Iterate over all documents in a site

I'm trying to iterate recursively over all documents in a given site. This is what I'm using: using (System.IO.StreamWriter file = new System.IO.StreamWriter("docs.txt")) { foreach ...
1
vote
3answers
622 views

Using CSOM to get list item count for multiple lists

I am trying to create a function which should loop through all lists on current web and display their current item count. My code so far: <!-- language: lang-js --> ZN.updateDocumentCount = ...
2
votes
2answers
336 views

How to default a Person FormField in New Form Template?

Without using any addons, has anyone discovered a way to set a default value for a <SharePoint:FormField> where the field is a Person/Group? We'd like to default a field on our newform to the ...
1
vote
1answer
77 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!
0
votes
1answer
76 views

CSOM and master page and page layouts: .html vs .aspx vs .master

When applying master pages and page layouts using CSOM, should we generally operate using .html files? What would be pros and cons of using .html vs .aspx and .master files?
1
vote
0answers
76 views

How to access Page layouts and site templates using CSOM?

How to access Site Settings > Look and Feel > Page layouts and site templates using CSOM? The page allows end users to change these settings: Subsite Templates: subsites can use any site template ...
1
vote
2answers
534 views

How to enable publishing feature using CSOM?

How to enable site collection publishing infrastructure and site publishing features using CSOM?
1
vote
1answer
177 views

How to check if publishing is on using CSOM?

How to check using CSOM if a web has publishing infrastructure and publishing features enabled?
1
vote
2answers
79 views

Error when I try to access Term Stores: Access is denied

I'm trying to access term stores using CSOM. In Sharepoint log, i found this error message: Exception occured in scope Microsoft.SharePoint.Taxonomy.TermStore.get_Groups. ...
0
votes
1answer
95 views

Jquery show loading progress [closed]

Good day, I have a page with several javascript pages that get loaded. How can I check that all the JS files have been loaded? I tried the below with just alert boxes. $(onPageLoad); function ...
1
vote
1answer
79 views

Create site collection remotely on-premises

Is there any way to create a site collection remotely in an on-premises environment where self-service site collection creation is enabled? There should be no custom web services or logic installed ...
1
vote
1answer
87 views

Remote web application accessing SharePoint with current user's credentials

Can we access SharePoint from a remote application with current user's credentials when user opens a remote page which has server-side CSOM user opens a remote page which has a server-side WCF ...
1
vote
0answers
310 views

Check given user's listItem permissions with SharePoint 2010 Managed Client Object Model (c#)

Is it possible to determine if a user can access a given item identified by its url without the users context - it has to be done with CSOM. Code so far: var file = ...
1
vote
1answer
182 views

get all joined community sites under current site collection in search results/REST search/CSOM

I've list of community sites in a site collection, and I have a publishing page on my site collection with a content editor WebPart on it. I've to show list of joined community sites on this webpart ...
1
vote
0answers
129 views

Adding an existing app part using the client object model( finding the xml)

I've recently found this nice thread on adding an existing webpart using the csom: Add an existing WebPart Using the Sharepoint client object Model I've tried the same approach for an app part (so an ...
0
votes
1answer
203 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, ...
4
votes
1answer
121 views

SP.UI.Status anonymously inaccessible

Using Office 365 (SharePoint Online) I have stumbled into an annoying thing. Some parts of the JavaScript CSOM does not seem to be accessible when your browse the site anonymously. If Firstly I tried ...
1
vote
0answers
130 views

Get the Hierarchical Structure of Taxonomy Terms (for all TermSets) using SP.Taxonomy.js

I am trying to get all the terms from the termsets within a term group, maintaining the hierarchy using SP.Taxonomy.js (SP2013). Unfortunately, there seems to be no REST support for taxonomy in SP ...
0
votes
0answers
42 views

How to authenticate user in Office365 (SharePoint Online) for 3-rd party application?

I found the SharePointOnlineCredentials class for Office365, but it requires user name and password. I'd like that SharePoint (NOT MY APPLICATION) asks user to provide user name and password using ...
0
votes
0answers
140 views

Sharepoint 2013 Managed CSOM List Internal name

I'm trying to acces to my custom lists from a provider hosted app with .net Client Side Object Model. I'm using the function: clientContext.Web.Lists.GetByTitle("myCustomList"); I've figured out ...
3
votes
1answer
297 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 ...
0
votes
2answers
115 views

Access DVWP z:row with Javascript [duplicate]

I need to loop through the z:row of a Data View Web Part on the client using JavaScript to push to an array and then use the JavaScript CSOM to create a new list item in an existing list. var ...
1
vote
1answer
346 views

Sharepoint 2013 .NET CSOM CamlQuery Join

I am unable to create a working query with join in my .net csom application. I was using this article: http://msdn.microsoft.com/en-us/library/ff798388.aspx here is my code: ClientContext context ...
0
votes
1answer
269 views

CAML Join for retrieving FieldLeafRef

I'va a custom list which contains a lookup field to a document library. Now I need to retrieve all items from this list with the corresponding file name from the document library with Javascript CSOM. ...
1
vote
0answers
228 views

Provisioning fields and content types through JSOM

Im trying to add a field to a content type through some code on Chris o' Briens blog here. I have modified the code slightly to add multiple fields to a content type. See below: function ...