Skip to main content

Questions tagged [object-model]

API for interacting with SharePoint from .NET code deployed to the server.

0 votes
1 answer
225 views

SearchExecutor not returning results with non privileged user

for short "testing user" will be "TE", "administrator user" will be "admin". I am currently working in a sharepoint project in visual studio which deploys a webpart that uses the search engine. With ...
the simple's user avatar
2 votes
1 answer
31 views

"Link to a Document" Content Type on non-English SharePoint

I'm following the code at https://blogs.msdn.microsoft.com/cliffgreen/2008/06/23/creating-a-link-to-a-document-item-in-a-sharepoint-document-library-programmatically/, and I'm worried about the line: ...
bmm6o's user avatar
  • 85
2 votes
2 answers
565 views

Why is creating a large number of child sites becoming slower?

I need to create about 8000 sites in a site collection, based on Title and path attributes from a database table with 8000 records. I wrote a simple console based application in C# that utilizes the ...
Web User's user avatar
  • 229
3 votes
1 answer
81 views

What could be the impact on SP Farm from those errors?

I find the below error more frequently especially with the custom application pages that are developed. i saw approx 2000 of those errors in a hour span of ULS logs. What could be the impact on SP ...
Achiever SP's user avatar
  • 1,915
4 votes
1 answer
499 views

Accessing SharePoint using the object model with impersonation

I have a SharePoint web application which contains two applications. Sp.test.com => SharePoint web application, claims based authentication. Employees => Employees application, authentication with AD ...
juamurex's user avatar
0 votes
1 answer
70 views

Is there any available Object Model for document libraries and version controls?

I would like to know and understand the steps of SharePoint itself when it comes to uploading documents into a library (i. e. used as document management system) - also regarding the version control. ...
SteffPoint's user avatar
1 vote
0 answers
29 views

Get workflow reports from object model

I would like to call a standard workflow report (Activity Duration Report or Cancellation & Error Report) from server-side code. This is typically done by passing in the ReportId and the workflow ...
Nathan DeWitt's user avatar
1 vote
0 answers
47 views

Programmatically Configure Auditing in Secure Store Service and Site Collection

For Auditing to be enabled, I have read that, it has to be turned on at the Secure Store Service. Also, it needs to be configured at the Site Collection Level. So, is it possible to check ...
Ven's user avatar
  • 1,147
0 votes
1 answer
201 views

Assign permissions to folder in document library from person lookup - SharePoint 2010

Let me first preface by saying that I am new to programming with the SharePoint Object Model... I have a requirement where after a list item is created, which indicates 2 individuals in a person ...
Pat Coombe's user avatar
0 votes
2 answers
641 views

Programmatically Create Site Collection within a Specific Content DB or move to a specific Content DB using SP Object Model & Not PowerShell

Is it possible to specify the Content DB to which a site collection will belong while creating a Site Collection? I am using the SelfServiceCreateSite API. If not, is there a way to move a site ...
Ven's user avatar
  • 1,147
0 votes
1 answer
309 views

Check user has permissions for a sharepoint site

On a SharePoint site I've created a permissions group with contribute permission level. I've added an active directory group Domain/group1 to the SharePoint group. The group has around 100 of domain ...
adilahmed's user avatar
  • 2,985
2 votes
1 answer
502 views

Security exception when trying to use JavaScriptSerializer

I am trying to use the JavaScriptSerializer class in an event receiver which is part of a sandbox solution. When trying to use the class, I get a System.MethodAccessException with the following ...
Dylan Cristy's user avatar
  • 12.9k
1 vote
1 answer
1k views

Programmatically Get Custom Lists (User Defined) Only

Is it possible to get the user defined lists (custom lists) in SharePoint 2013 object model? I am not referring to the lists created along with the site definition.
Ven's user avatar
  • 1,147
4 votes
2 answers
369 views

SPWeb object will be dispose everytime or not?

I have following code in my web part. I want to know whether this property _web will create object each time whenever I use it. If yes then will it be disposed every time. private SPWeb _web { ...
Nafe's user avatar
  • 160
2 votes
1 answer
7k views

Programmatically Get Version Changes for List Item in SharePoint 2013

Is it possible to get only the changes (changed field values) from every version of a List Item in SP 2013? If so, can anyone please explain it in detail with code?
Ven's user avatar
  • 1,147

15 30 50 per page
1
2 3 4 5
15