Questions tagged [sharepoint]

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.

Filter by
Sorted by
Tagged with
3
votes
2answers
94 views

Replacing values in a list

This is my first Powershell script ever so bear with me. I'm trying to replace values in a sharepoint list from a CSV file: ...
1
vote
1answer
352 views

Comparing dates with SharePoint PnP PowerShell

I am wondering if should change my if statement that compares two dates if they are equal. Is there a better way of doing this operation? The code does what it supposed to do. No errors. The Code: <...
0
votes
1answer
393 views

Mock customer DAO using abstract factory pattern in React

I wanted to implement abstract factory method in typescript with react for sharepoint framework webpart. So I tried to translate ideas from this Java tutorial. I don't have method implementations ...
0
votes
1answer
129 views

How to check if workbook not corrupted

I have asked this on the main stackoverflow.com site, but I have been redirected here. My problem is, how to check, if a workbook that is downloaded from sharepoint is not corrupted and can be open. ...
1
vote
1answer
268 views

Rendering SharePoint lists into tables with any number of columns

I have the following code, but first the explanation. I am using a REACTJS Office UI Component called details list: https://developer.microsoft.com/en-us/fabric#/components/detailslist And I want my ...
1
vote
0answers
345 views

Excel query within PowerShell

I am currently using the following query to add a specific row (with 10 columns) from an Excel spreadsheet (~1500 rows and hosted on SharePoint - I've also tested locally with the same issue) to an ...
1
vote
0answers
276 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 ...
1
vote
1answer
353 views

Displaying a List in a Managed Metadata TreeView

I have some Managed Metadata in SharePoint which is in the following format: Managed Metadata Service People Job Title And I have a list of people, ...
2
votes
1answer
296 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 ...
0
votes
2answers
626 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 ...
6
votes
3answers
425 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
53 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
1k 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 ...
0
votes
1answer
1k views
2
votes
1answer
68 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 ...
1
vote
1answer
376 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# ...
6
votes
1answer
174 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
1k 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 ...
2
votes
1answer
232 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. ...
2
votes
2answers
814 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
95 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 ...
3
votes
2answers
807 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. ...
9
votes
3answers
915 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. ...
4
votes
1answer
1k 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
0answers
1k 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. ...
2
votes
1answer
85 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 ...
0
votes
1answer
302 views

too many conditions [closed]

I have this piece of code I developed but it doesn't look efficient to me, can anyone improve it please. ...
1
vote
1answer
1k views

using (IDisposable) in c# factory pattern

How will this example affect the using implementation in GetSite? ...
4
votes
2answers
2k 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: ...
2
votes
1answer
379 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? ...
3
votes
2answers
42k 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 ...
2
votes
0answers
307 views

Is there any better way to insert and retrieve data into SPList?

I am using this code to insert and retrieve: ...
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 ...