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

learn more… | top users | synonyms

0
votes
0answers
42 views

Upload document to sharepoint office 365 - file Type Icon

iam trying to uploading the excel file to office 365 share point using CSOM with C#, i able to uploading the file,but file type icon(EXcel symbol)is not showing in share point site. any one can help ...
0
votes
2answers
126 views

query.set_viewXml retrieving everything

I am writing code for client side object model, and I want to retrieve items with specific title, like this: var context = SP.ClientContext.get_current(); var web = context.get_web(); var lists = ...
0
votes
2answers
312 views

Send Email from CSOM

Is it possible to send an Email from an Autohosted Sharepoint 2013 app from CSOM code (C#) with an attachment? I have the following code: EmailProperties properties = new EmailProperties(); ...
1
vote
1answer
359 views

Sharepoint 2013 Content Search vs. Javascript CSOM

I did what this page teaches: http://code.msdn.microsoft.com/SharePoint-2013-Querying-a629b53b It works, but the thing is that I used the same KQL query in a content search webpart and I have ...
0
votes
0answers
148 views

SharePoint 2013 BCS External Data Column

How do I return all entities without using entity.GetFilters() ? I have the following and I can only seem to produce a FilterCollection. I would much rather have just all the enities because i am ...
3
votes
0answers
109 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
1answer
80 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
0answers
86 views

401 when authenticating against Sharepoint Online

Good morning. Being very new to SharePoint, I've been trying to write a very basic app to create a new site inside my Sharepoint Online tenancy, but I can't seem to get it authenticated. I'm using the ...
0
votes
1answer
127 views

SharePoint 2013 External Content type. Populate secondary fields

I am trying to migrate data to a document library that contains a external content type using the SharePoint 2013 client object model. The external content type is pulling from a sql server 2012 ...
1
vote
1answer
95 views

CSOM in FarmSolution

I am having troubles to get it running and wanted to ask you if you know if it is possible to use CSOM in SP 2013 Farm Solutions? I constantly get an 401 unauthorized exception. Here is how I create ...
1
vote
1answer
97 views

Set 'url title' of a view

How to set the url title of a list view programmatically (preferrably CSOM/JSOM) so we could for example create a view whose View Name is "My View" and its web address ends with "/MyView.aspx"
2
votes
2answers
98 views

List version limits client-side

Versioning can be defined the same way in UI in SP2013 and O365: How can we programmatically set these limits in SP2013 without server-side code? Server-side we would have SPList.MajorVersionLimit ...
3
votes
2answers
479 views

SharePoint 2013 get user groups by CSOM

I wrote some code to get the current user groups by CSOM. function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); ...
1
vote
1answer
139 views

Get Master Page Gallery via CSOM

How to get master page gallery via CSOM so that we would support language packs / we cannot use Lists.GetByTitle("Master Page Gallery"). So how to get list "_catalogs/masterpage"?
1
vote
1answer
428 views

breakRoleInheritance and RemoveRole CSOM

I need to breakRoleInheritance on the items of a SharePoint2013 list. I need to remove all the current roles and add only the Owner and the Current user. How can I do it by client side? Thanks, Nk
3
votes
1answer
236 views

Get webpart's Zone Id via CSOM

How to get Web Part Zone Id via CSOM? WebPart has property ZoneIndex but no ZoneId while WebPartDefinition has method MoveWebPartTo(string zoneID, int zoneIndex) but lacks methods to retrieve the ...
9
votes
2answers
843 views

SharePoint 2013 CSOM: Is it better to pass a Context object around or a Url?

In SharePoint 2013 CSOM is it better to pass a Context object around, or a Url to open a context? Which would be the best example: (Please consider there may be a lot of methods preforming tasks) ...
1
vote
1answer
91 views

Checkout for another user using CSOM?

Can we checkout page to another user via CSOM? Or, first checkout the page and then change to whom it is checked out to?
0
votes
0answers
83 views

How to create dashboard through CSOM to show workflow from external lists

We have following requirement. SharePoint 2013 standard edition environment is installed. SO no BI site template is possible. Development has to be through CSOM only. Vendor data is stored ...
1
vote
0answers
285 views

Content Search webpart with sort/query using CSOM

How can we add a Content By Search webpart using CSOM when we want to use a custom query (in SP2013)? Would there be an easy way? For example, could we just Import the web part Set ...
0
votes
3answers
221 views

executeQueryAsync in for loop

Lets say i have a function that has a for loop in it. I need to loop it becouse i have an array that i need to get items dynamically from: newsArray[i].Group. In the function Success , i will be ...
0
votes
0answers
317 views

SharePoint2013 search exception using CSOM

I have created Bing result source and have attached to SharePoint search. When I go to the search site and perform search it's returning results, but when I tried to access the results using csom it's ...
0
votes
0answers
36 views

OpenBinaryDirect times out when downloading a file from a subsite

I'm trying to download files from sharepoint online. I'm using: Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientContext, file.ServerRelativeUrl).Stream; Which works fine for files at top ...
0
votes
2answers
388 views

How to insert record to sharepoint multi choice field via CSOM

I am trying to insert a Multichoice (checkbox) field to sharepoint via the SP namespace in javascript. Updatnig single choice is simple. For Multichoice I have tried: var itemCreateInfo = new ...
0
votes
0answers
122 views

Office 365 Client Object Model, Unauthorized Exception

I have been trying to read the contents of a list from a Office 365 site. I used this link as reference. Code: var clientContext = new ClientContext(siteUrl); SecureString passWord = new ...
0
votes
3answers
89 views

Questions and Answer App

I am currently designing a questions and answers app for office 365. Users can submit questions and other users can answer (very similar to stack exchange). This is for an intranet. I am currently ...
1
vote
1answer
51 views

Remote event receiver setting LastModifiedBy to “SharePoint Program”

I have a remote event receiver, on a list, that fires every time an item is updated, and it works fine. However the "Last modified by"-field on the item is set to "SharePoint program". I have tried ...
0
votes
1answer
121 views

Created a visual webpart for office 365 and getting error

This is the error, It's just a simple visual web part i created as sandbox, please guide Getting Error Message for Exception System.Security.SecurityException: That assembly does not allow ...
2
votes
0answers
38 views

CSOM / Webservice multilingual provisioning site columns, lists,

Is it possible in SharePoint 2013 to create site columns, content types, lists, libraries, ... in different languages (so, with different display names) by CSOM (client server object model) or a ...
1
vote
0answers
36 views

How to set the _CheckinComment with CSOM

I'm looking for a way to set the _CheckinComment. If i try It like this: Microsoft.SharePoint.Client.File myUploadFile = myList.RootFolder.Files.Add(fileCreationInformation); ListItem ...
0
votes
1answer
86 views

collection has not been initialized after dialog modal closes

I have two JS scripts on my SharePoint 2010 page, one in the master page, one in a forms web part (I've attempted this with a CEWP as well). Both are in unique name spaces (My.Tabs and ...
1
vote
0answers
113 views

Error Setting Ratings using SharePoint Client Object Model

We are attempting to use the example located on this: Site We are receiving the following error: "The assembly Microsoft.SharePoint.Portal.Proxy, Version=15.0.0.0, Culture=neutral, ...
1
vote
0answers
50 views

Jsom not working when user is reader

I am using following code to get terms from a termset in MMS. It is a office 365 solution and some of users is external users which have read permissions. The javascript doesn't work when user is ...
3
votes
2answers
348 views

getting Regional settings in Javascript from CSOM

I am creating a custom data entry app in sharepoint using the CSOM. I need to update the default value of a datetime field, I can get the default value but the datetime is in UTC Format. I need to ...
1
vote
2answers
78 views

Floating Feedback Button on SharePoint 2010

I need to create a floating feedback button at the bottom of the master page. This should appear at the right side of the home page and all the pages. I should open a new modal form to give the ...
2
votes
3answers
205 views

CSOM Change Field Name

I am trying to change the list column name. Here is my code, it isn't working. I added a content editor web part with this code: <script type="text/javascript"> //js ref </script> ...
1
vote
0answers
50 views

Manage files with no checked in version - CAML query

I am using Office 365. We have a document library containing more than 12000+ documents, with a number of folders and subfolders. I need to find a way to get all document which have no checked in ...
1
vote
2answers
203 views

How to get current logged in user's star rating in SharePoint 2013

Currently, I am developing a custom web part to show star rating for documents, everything is done. However,when user hover on the star I want a tooltip message("Your current rating is 1..."), ...
0
votes
1answer
2k views

getting list using JavaScript, error: Unable to get property 'apply' of undefined or null reference

In the context of a page in SharePoint 2013, I am trying to get items from a list using below code but when the query executes I am getting this error: SCRIPT5007: Unable to get property 'apply' of ...
1
vote
0answers
25 views

How would you build an AutoSPConfigurator (to be used when farm is installed) [closed]

I would like to have a tool that is an equalent to AutoSPInstaller, but for configuring the most used out-of-the-box features. It would do the following: Create sites Upload term set and configure ...
1
vote
1answer
57 views

Caml query after modified choices

I have a column with an internal name of: PublicY with 2 choices: Yes/No, the query works but if I change the choice name to Ja/Nej the code will not query the results, why? I have tried to change the ...
1
vote
1answer
233 views

Upload Image to Sharepoint Photo Library from asp.net mvc

I have a Provider Hosted App, one of it's functionality is to upload the images into sharepoint picture library. I am able to store the picture into some folder, using the below code. public ...
0
votes
0answers
42 views

Dynamically adding CUI.Controls.SplitButton?

I managed to dynamically add Ribbon to Custom Edit Form, as described here. Now I need to replace Button with SplitButton element with Menu in it. Is there any example about it? I really don't wont to ...
0
votes
1answer
124 views

Access Denied when creating post using managed client object model

I am using .net client object model for MicroBlogging (Post with hashtags). I am getting access denied error. i am using below code const string serverUrl = "http://usfkl13as133v:9191/en-US/"; ...
0
votes
0answers
52 views

passing information from Sharepoint to Immersive Sharepoint App

I have created an custom add entry app to sharepoint. It all works however currently the list it works on is hard coded. I want a way to pass the list I want to add an entry to to the application. I ...
2
votes
2answers
54 views

return to sending page from an CSOM app

I am creating an App via the javascript + CSOM... After I have finished processing I need the app to send the user back to the original page he was on. How do you retrieve the page from sharepoint to ...
3
votes
2answers
436 views

Return Specific Content Type in Site Collection Using REST API

I am looking for a way to use the REST API to return specific fields of a specific content type so that I can bind it to a table. It seems the List API is used against a specific List but in my ...
1
vote
1answer
74 views

Problem with Caml Query

I need to put this code: <View>"; <Query>"; <Where>"; <Eq>"; <FieldRef Name='PublicY' />"; ...
1
vote
2answers
121 views

Jquery and csom problem

Hi im having some code like this: var News = new Array(); jQuery(document).ready(function () { ExecuteOrDelayUntilScriptLoaded(initialize, "sp.js"); some code here... function setUpList(){ ...
2
votes
1answer
170 views

Extract text from document in a SharePoint 2013 library

I would like to extract the text from documents stored in a SharePoint 2013 online document library. I have the document loaded using: ClientResult<Stream> data = file.OpenBinaryStream(); ...