Tagged Questions

SharePoint Server-Side Object Model

learn more… | top users | synonyms

0
votes
1answer
21 views

Looping through active directory nested security groups in SharePoint

Is there a way to loop through the nested security groups in active directory, with or without using LDAP in SharePoint?? I have tried SPUtility.GetPrincipalsInGroup but Im not geting nested groups ...
0
votes
1answer
249 views

How to parse the output returned from REST (/_api/)?

When we use REST we get output as xml how do we parse this via JSOM and fetch the values? Also, please provide some information on how to use this in SSOM instead of JSOM?
0
votes
1answer
17 views

How can we display the email-id and profile picture of loggedin user on a webpart?

In SharePoint 2013, using SSOM, we need to display the email-id and profile picture of loggedin user on a webpart? What is best practice? Do I need to use SPContext.Current.User or Do I use the ...
0
votes
0answers
91 views

Getting exception “Unable to synchronously deliver start event via a manual-start workflow” while trying to start workflow programmatically

I am trying to start a SharePoint list workflow from a WPF application. The code snippet I am using is below. It is a SharePoint 2013 server. These are the class members: String _webURL = ...
1
vote
1answer
66 views

ICustomRouter interface >> CSOM or Server Side Object model

We are looking into a custom document route, and I know about the ICustomRouter interface. Can it be used in CSOM? The ICustomeRouter example here: ...
0
votes
0answers
67 views

Route documents to another site collection if approaching size limit

We'd like to have a Drop Off library look @ the current site size, and if it is approaching a limit, send the file to a different site within the site collection. It's kind of like a "you are ...
1
vote
1answer
172 views

How do I “follow site” in SharePoint with SSOM?

I haven't found that much information online about how to utilize the Social Part of SharePoint 2013 by Server Object Model. To understand and follow my question better i recommend you going to this ...
2
votes
2answers
130 views

how do I update user profile property in SharePoint 2013

We are using sp2013. There is a custom user profile property with name: MyProperty (boolean). The property cannot be edited by user. I want to update the property value for current user on an ...
1
vote
2answers
189 views

How do I fetch the data from list present in root web of the root site collection?

We need to populate some data on an application page. The application page is present in the layouts folder and hence is accessible via the respective site URL. There are multiple site collections. ...
1
vote
1answer
243 views

Reading and writing user profile properties using SSOM

The code works. There is no error. Please let me know if this is the best practice to read/write to the user profile property in SharePoint 2013. Read: string currentUser = ...
0
votes
2answers
144 views

what permissions are needed for writing to uls logs?

We have creates a webpart and in the catch block we are writing logs to uls. My concern is regarding permission to write to this log. Will users with read-only access to sharepoint face no issue? ...
0
votes
2answers
104 views

How to get the root site collection programaticallty via SSON and ECMA?

We have created web application. Within this we created 2 site collection: Site collection 1 - http://pcname:3333/ Site collection 2 - http://pcname:3333/sites/sc2 Within each site collection we ...
1
vote
3answers
434 views

How to access Root Site Collection from other site collections?

we have a user control on the master page (this masterpage is applied to all sites in the web application). User control code: SPSite spsite = new SPSite(SPContext.Current.Web.Url); ...
8
votes
2answers
113 views

How do I delimit Property bag values so search treats them as individual searchable words?

currently I'm using the property bag with values that are comma separated something like: web.AllProperties["fruits"] = "bananas, apples, oranges, tomatoes"; Currently search is treating them as one ...
0
votes
1answer
91 views

Creating publishing pages using SharePoint Server Object Model in SP 2010

I am trying to create new pages in my publishing site(need to use a custom page layout) using SharePoint Server Object Model. I couldn't find much help on this topic from internet. Happy to have some ...
4
votes
1answer
117 views

SPFarm.Local Object Being Cached in SharePoint 2013

I am experiencing an odd issue where the SPFarm.Local object is not being updated for SharePoint 2013, but it does for 2010. Basically I have some code that adds/deploys/updates SharePoint solutions ...