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
3k 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 ...
ChaddRobertson's user avatar
1 vote
1 answer
236 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: ...
BCdotWEB's user avatar
  • 11.2k
3 votes
2 answers
774 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: ...
bier hier's user avatar
  • 133
1 vote
1 answer
1k 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: <...
AllramEst's user avatar
  • 113
0 votes
1 answer
801 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 ...
Luis Valencia's user avatar
0 votes
1 answer
407 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. ...
MarcinSzaleniec's user avatar
2 votes
1 answer
367 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 ...
Luis Valencia's user avatar
1 vote
0 answers
653 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 ...
PowershellPauper's user avatar
1 vote
1 answer
473 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, ...
Bassie's user avatar
  • 559
0 votes
2 answers
1k 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 ...
Rewati's user avatar
  • 3
2 votes
1 answer
405 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 ...
Pete Whelan's user avatar
6 votes
3 answers
453 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: ...
pete whelan's user avatar
3 votes
1 answer
70 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 ...
Bassie's user avatar
  • 559
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 ...
Bassie's user avatar
  • 559
2 votes
1 answer
71 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 ...
Phonolog's user avatar
  • 123
0 votes
1 answer
1k views

Getting employee details according to the role

Here is my issue.I have two classes: ...
Hank Mooody's user avatar
6 votes
1 answer
188 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 ...
Eric Alexander's 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 ...
Bassie's user avatar
  • 559
4 votes
2 answers
117 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 ...
Michael A's user avatar
  • 1,641
2 votes
2 answers
878 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 ...
Michael A's user avatar
  • 1,641
3 votes
2 answers
889 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. ...
Mathematics's user avatar
2 votes
1 answer
241 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. ...
Prasad Gavande's 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. ...
Prasad Gavande's 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 ...
Michael A's user avatar
  • 1,641
2 votes
1 answer
90 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 ...
Skarven's user avatar
  • 325
9 votes
3 answers
947 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. ...
Mathematics's user avatar
1 vote
1 answer
2k views

using (IDisposable) in c# factory pattern

How will this example affect the using implementation in GetSite? ...
Eric Herlitz's user avatar
2 votes
1 answer
386 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? ...
Michael A's user avatar
  • 1,641
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: ...
Muhammad Raja's user avatar
3 votes
2 answers
44k 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 ...
Muhammad Raja's 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. ...
Muhammad Raja's 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: ...
Rajesh Chowdary's user avatar
1 vote
1 answer
411 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# ...
Michael A's user avatar
  • 1,641
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 ...
Muhammad Raja's user avatar