Microsoft SharePoint is a platform and a family of software products developed by Microsoft for collaboration and web publishing. Its capabilities include developing web sites, portals, intranets, content management systems, search engines, wikis, blogs, and other tools for business intelligence.
0
votes
2answers
41 views
Write ListItemCollection item to a file
I am using below code to write list item to a file. I want only 2 fields from the list. Is there any direct way without looping through all the items to do that? Here ...
2
votes
0answers
24 views
Saving data to a Sharepoint list taking a long time
I inherited this code that saves data to a sharepoint list.
This method saves the data to the list.
In other parts of the application a list is presented and can be paged through.
You then select an ...
6
votes
3answers
165 views
Get a value from a list in Sharepoint 2010
I am using SharePoint 2010 and get values from a list using the code below.
It might be called like this: ...
3
votes
1answer
36 views
Retrieving the Currently Logged in User's Department
I hope this is the right place for this. I basically wrote the below script for a SharePoint 2013 where I needed to get the department of the currently logged in user.
I was finally able to get it ...
0
votes
1answer
28 views
Accessing SharePoint's Managed Metadata TermSets Locally and Remotely
I have written a small program which has 2 main classes :
ServerSideMMS: This can access the SharePoint Managed Metadata Services, but only from the server which ...
2
votes
1answer
51 views
Building a SharePoint Search URL
I'm trying to build a URL to call the SharePoint Search REST API in TypeScript. The interesting part is building the querytext, which is done by my buildQueryText method. In my case it takes two ...
0
votes
1answer
155 views
6
votes
1answer
71 views
SharePoint Online inventory
I'm creating a script to turn into a commandlet we can reuse as part of our custom PowerShell module. This works, but is very slow. I don't suspect it is anything to do with my code. I have to ...
4
votes
1answer
337 views
Merging SharePoint Word documents into a single PDF with iTextSharp
I created a program which collects all the word files from a folder which belongs to our SharePoint library of documents. The program will only grab the documents if they were submitted/are a part of ...
3
votes
2answers
67 views
Order Retrieval System with a SharePoint Backend
I have an ordering system that uses SharePoint. Below I've included a small snapshot of the system that is used in a WPF form when the user clicks a button to refresh the order listing. The outcome is ...
2
votes
2answers
399 views
Sharepoint Authentication Helpers
I'm working on a rather large SharePoint project that's going to contain helper classes for a variety of item levels (sites, webs, lists, items, etc').
When writing code I'm expecting that the same ...
3
votes
2answers
338 views
CRUD operation class
This code is a chunk of big project, so I am sorry in advance for not adding everything as it's just not possible.
...
2
votes
1answer
114 views
Change Task Edit form of workflow in SharePoint 2010
I want to change the task edit form of the workflow when an approver wants to approve/reject a task. Please review and suggest improvements or any other possible solution with an explanation.
...
0
votes
0answers
165 views
Getting ID of Task List item in Sharepoint 2013
I want to do some operation by taking an ID of a Task List item in SharePoint on UI front. I've just wrote some jQuery code by traversing the element. I got the ID and performed operations what I ...
2
votes
0answers
544 views
Get username from active directory if you know active directory Id in SharePoint
I have created JavaScript code using REST API for getting the username of a SharePoint user from an active directory if you know the ID. Please suggest any improvements.
...
4
votes
1answer
365 views
SharePoint and JSON output project
I'm working on a project that reads a series of SharePoint lists and outputs them into JSON file(s) which will later be uploaded via FTP to use on a website.
I'm aware that there's a lot I could be ...
2
votes
1answer
82 views
Transforming complex strings into simple arrays
Some time ago I wrote a series of functions for turning a string of user information from multiple users an array containing the information needed: Name, username and location. The raw ...
8
votes
3answers
601 views
Checking if website exists and adding +1
I am trying to find if a subwebsite exists in sharepoint, and if it does, then add +1.
I think the loop can be improved.
...
1
vote
1answer
627 views
using (IDisposable) in c# factory pattern
How will this example affect the using implementation in GetSite?
...
2
votes
1answer
338 views
Surely there's a better way to write this statement?
I have the following, quite ugly statement - is there a better way to write something of this nature?
...
4
votes
2answers
1k views
Splitting a string of random length
I am currently using this code, but I am pretty sure there is a better way of doing it:
...
3
votes
2answers
15k views
Better way of parsing string to boolean
At the moment I am using this to check a boolean property in sharepoint 2007 using C# and .Net Framework 3.5
...
1
vote
1answer
265 views
too many conditions
I have this piece of code I developed but it doesn't look efficient to me, can anyone improve it please.
...
2
votes
0answers
286 views
Is there any better way to insert and retrieve data into SPList?
I am using this code to insert and retrieve:
...
1
vote
1answer
331 views
SharePoint class
To help learn the SharePoint object model (primarily for SharePoint 2007), I've been working on a class library with a number of useful functions. I'm a junior developer and this is my first C# ...
2
votes
2answers
3k views
Getting SharePoint users and comparing them with SPList
I have a custom SPList that has a field Assigned To, now I can add as many items as I want, and they can have same title and ...