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
2 votes
1 answer
270 views

List all files and folders within a SharePoint document library

Background: I have made two classes. The first is SharePointHandler, and contains a few functions that I intend on using to automate some actions on SharePoint. A ...
user avatar
1 vote
1 answer
67 views

Extracting data stored in a JsonDocument from an Excel file on sharepoint.com, retrieved using Microsoft Graph

I retrieve data from an Excel file located on sharepoint.com using Microsoft.Graph like this: ...
user avatar
  • 10.7k
1 vote
0 answers
26 views

User Friendly Comment and Answer System for SharePoint Site

I am seeking help in improving my question and answer system I developed for my office SharePoint site. The question and answer system features two-columns and in the each columns is a table. I have a ...
user avatar
  • 111
3 votes
2 answers
715 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: ...
user avatar
  • 133
1 vote
1 answer
836 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: <...
user avatar
  • 113
0 votes
1 answer
714 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 ...
user avatar
0 votes
1 answer
332 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. ...
user avatar
2 votes
1 answer
361 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 ...
user avatar
1 vote
0 answers
631 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 ...
user avatar
1 vote
1 answer
441 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, ...
user avatar
  • 569
0 votes
2 answers
958 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 ...
user avatar
  • 3
2 votes
1 answer
376 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 ...
user avatar
6 votes
3 answers
449 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: ...
user avatar
3 votes
1 answer
63 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 ...
user avatar
  • 569
0 votes
1 answer
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 ...
user avatar
  • 569
2 votes
1 answer
69 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 ...
user avatar
  • 123
0 votes
1 answer
1k views

Getting employee details according to the role

Here is my issue.I have two classes: ...
user avatar
6 votes
1 answer
186 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 ...
user avatar
4 votes
1 answer
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 ...
user avatar
  • 569
4 votes
2 answers
116 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 ...
user avatar
  • 1,631
2 votes
2 answers
866 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 ...
user avatar
  • 1,631
3 votes
2 answers
880 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. ...
user avatar
2 votes
1 answer
240 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. ...
user avatar
1 vote
0 answers
291 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 ...
user avatar
2 votes
0 answers
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. ...
user avatar
4 votes
1 answer
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 ...
user avatar
  • 1,631
2 votes
1 answer
89 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 ...
user avatar
  • 325
9 votes
3 answers
941 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. ...
user avatar
1 vote
1 answer
2k views

using (IDisposable) in c# factory pattern

How will this example affect the using implementation in GetSite? ...
user avatar
2 votes
1 answer
385 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? ...
user avatar
  • 1,631
4 votes
2 answers
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: ...
user avatar
3 votes
2 answers
43k 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 ...
user avatar
0 votes
1 answer
313 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. ...
user avatar
2 votes
0 answers
311 views

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

I am using this code to insert and retrieve: ...
user avatar
1 vote
1 answer
402 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# ...
user avatar
  • 1,631
2 votes
2 answers
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 ...
user avatar