Questions tagged [sharepoint-object-model]

SharePoint Object Model exposes SharePoint API. This is broken down into the "original" Object Model and the newer (since SP2010) Client Object Model.

SharePoint Object Model exposes SharePoint API when direct access to the Content Database is allowed.

This is different than the SharePoint Client Object Model - for that, see "sharepoint-clientobject".

49 questions
0
votes
1 answer

SPListItem.Update() throws exception when trying to update Title. 255 char limit issue with encoding

It seems that I have an issue with encoding. The field max width is 255 chars and the title is indeed 255 chars, however there are some characters in the title (quotes and angle brackets) that are encoded by SharePoint, pushing the title width over…
Chris Ballance
  • 33,810
  • 26
  • 104
  • 151
0
votes
1 answer

Why SharePoint client object model retrieves all items when query fails?

I'm trying to get the items from a child list (a lookup list i suppose, i'm new in SharePoint development) that are related to their items in the parent list. For brevity, lets call them list A for parent and list B for child. So in general, list …
ashilon
  • 1,791
  • 3
  • 24
  • 41
0
votes
2 answers

How to filter ListItemCollection sharepoint object model

CamlQuery camlQuery = new CamlQuery(); camlQuery.ViewXml = @" "; camlQuery.FolderServerRelativeUrl =…
Neo
  • 15,491
  • 59
  • 215
  • 405
0
votes
1 answer

Is there any way to get custom column/property value of sharepoint document using c#?

below code working fine and gives me list of all files into sharepoint site. i get standard properties of file like item.File.Author and item.File.ModifiedBy but not custom item.File.Location // Sharepoint Object Model Code ClientContext…
Neo
  • 15,491
  • 59
  • 215
  • 405
0
votes
1 answer

SharePoint Online UserInfo endpoint URL

I am trying to build SharePoint Online Adapter using Microsoft.SharePointOnline.CSOM version 16.1.7018.1200 I am struggling in finding for this REST API the correct Endpoint URLs. Some of them might be same as in GDrive (since both of them are…
0
votes
2 answers

SharePoint 2013 online can I set other column values when uploading a file using REST?

The below Javascript works perfectly when i'm trying to upload a file to SharePoint 2013 online. However I have been looking unsuccessfully for a way to populate another column in the document library at the same time as my file is uploaded. For…
0
votes
1 answer

Sharepoint Object Model vs WebServices

I had created a xml query that I was sending to my sharepoint search service which was returning some results. I then pulled the SQL query text out of it and started using it with the object model and now it's not working. Does it look like I am…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
0
votes
0 answers

find out what item id failed executeQueryAsync item creation

How can i find what item failed executeQueryAsync add item method ? this is my code : var itemArray = []; var siteUrl = "http://MySite/MM/cm"; var clientContext = SP.ClientContext.get_current(); var oList =…
0
votes
1 answer

PreSaveAction is not working in SharePoint office 365 (2016)

I am working on SharePoint office 365 (2016), and facing issue while adding custom validation in new item form. Here scenario is complex, I can't handle by using Validation setting/formula. So I have choose custom JavaScript code. As validation…
0
votes
1 answer

Sharepoint 2010 CSOM Object - List Column Type NOTE

In the Microsoft.Sharepoint.Client CSOM library in VB.NET, is there a object or set of objects that will allow me to access properties/values and methods on a SharePoint list column of type Note? I have dug around, but cannot find any documentation…
Eric
  • 505
  • 5
  • 22
0
votes
1 answer

Consume taxonomy collection from Sharepoint 2013 Client Object Model

I'm able to successfully get back a list of Genres I have stored in Sharepoint. It's unofficially a TaxonomyCollection I believe. The way the client object sends it back is kind of strange and difficult to take and put into another form. Maybe I am…
The Muffin Man
  • 19,585
  • 30
  • 119
  • 191
0
votes
1 answer

The Web application at ??? could not be found

I have an asp.net web site in vs2008 in which I wrote sharepoint object model code. I run my code on windows server 2003 64-bit mode and I have sharepoint 2007(64 bit mode) installed on that. However, when it comes to the following line, I get the…
0
votes
1 answer

System.InvalidOperationException: Operation is not valid due to the current state of the object.?

I am developing asp.net mvc application for SharePoint Foundation 2010. asp.net application is hosted on one machine and SharePoint Foundation 2010 is hosted on another machine. I have deployed one custom wcf service inside ISAPI folder of…
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
2 answers

Where should custom Wcf service for SharePoint 2010 resides?

I want to create Wcf service for SharePoint 2010. I strictly want to use server object model. I have gone through two articles…
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
1 answer

Unable to access sharepoint 2013 site using COM javascript

I have requirement to work on COM Javascript in SharePoint 2013. I have created one ".aspx" page and included script files to access SharePoint site & list using Javascript. However, I am not able to get any results in clientContext. Please review…