Questions tagged [object-model]
API for interacting with SharePoint from .NET code deployed to the server.
215 questions
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 ...
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:
...
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 ...
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 ...
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 ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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
{
...
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?