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

learn more… | top users | synonyms

1
vote
0answers
228 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
184 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
261 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
34 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
296 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
112 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
76 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
42 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
106 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
35 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
35 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
79 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
97 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
46 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
264 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
64 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
176 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
43 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
167 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
1k 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
24 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
52 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
188 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
38 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
111 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
44 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
53 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
345 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
65 views

Problem with Caml Query

I need to put this code: <View>"; <Query>"; <Where>"; <Eq>"; <FieldRef Name='PublicY' />"; ...
1
vote
2answers
108 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
126 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(); ...
2
votes
1answer
44 views

Retrieve items from content type

I have the following setup: Root Subsite1 Subsite2 list1 list2 content type: News content type: News How can I retrieve the ...
2
votes
3answers
728 views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
3
votes
1answer
130 views

Which web part properties can / cannot be edited using CSOM?

For a Content Editor Web Part for example it seems we can update Width but not Content: webPart.Properties["Width"] = "100px"; webPartDefinition.SaveWebPartChanges(); clientContext.ExecuteQuery(); // ...
3
votes
1answer
257 views

Get quick launch using CSOM (JavaScript)

On my publishing site I have changed its current navigation (quick launch) to use structural navigation, showing all items under current site. I see that the quick launch shows pages and sub sites for ...
2
votes
1answer
48 views

jQuery REST Results = “[object Object],[object Object] etc”

We are hiding the List GUI from our visitors on some landing pages in SharePoint Foundations 2013 and displaying instead REST data harvested from the applicable lists. Since SharePoint's REST has a ...
1
vote
1answer
42 views

Can CSOM set portal url of a site collection?

Can CSOM be used to set the portal url of a site collection? This is possible using server-side object model via SPSite.PortalUrl: ...
0
votes
1answer
134 views

Caml Query Filter SharePoint 2013 Online

Hi I'm in need of some help with a caml query. I have 1 column in my list, that have 3 different choice. I want to query out items if the choice is equal to YES This is my code: var context = new ...
2
votes
1answer
120 views

Update AuthorId in sharepoint 2013 Blog

In a sharepoint 2013 Blog site I am posting a post on behalf of few senior members of our organization. As usual it shows my name in posted by field. Is there a way to change that programatically ...
2
votes
0answers
144 views

Manage links for shared files

I want to create a link using SharePoint CSOM API so anonymous user can read/edit file. I found the following workaround to get it via adding role assignment: var newRoleAssignment = new ...
4
votes
2answers
730 views

Is it possible to create site collection using CSOM?

I have been trying out to create site collection using CSOM but unable to fins and class which creates site collection. I have read in MSDN that CSOM runs as site collection scope hence creating site ...
1
vote
0answers
108 views

Windows Authenticated API calls failing when I use a custom sign-in form for FBA

I have a SharePoint 2013 web application configured for both Windows Authentication and FBA (which is working fine). I also have some code which executes a CSOM request using windows credentials, ...
0
votes
1answer
40 views

get answers for a blog post using csom

I am trying to find out how to get answers for a blog post in a community site using javascript or csom. I made a search on the Internet unfortunately didn't find anything.
0
votes
1answer
122 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
103 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
50 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
257 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
157 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
106 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
112 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 ...