SharePoint Server-Side Object Model

learn more… | top users | synonyms

0
votes
1answer
43 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
13 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
15 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
29 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
36 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 ...
0
votes
1answer
53 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
99 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
113 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
108 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
78 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
45 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
178 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
112 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
74 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
97 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 ...
0
votes
0answers
112 views

SharePoint 2013 Newsfeed - Unable to access another user feed

I'm trying to access another user newsfeed (i.e. not the logged on one) via SSOM in order to generate a daily/weekly mail digest. However, I repeatedly get Microfeed Error 57 when calling GetFeed on ...
0
votes
0answers
105 views

Access My Tasks list in personal sites

How can I access My Tasks list in personal sites in SharePoint 2013 using SSOM (Server Side Object Model)? I was looking at Microsoft.Office.Server.UserProfiles namespace, but I don't know which class ...