PnP

SharePoint Copy Files: Everything You Need to Know

SharePoint’s built-in Copy Files feature moves or duplicates files between libraries — same site or across sites — without needing a third-party tool. It’s the right call for routine content distribution; whether it’s the right call for a bulk migration is a different question, covered below alongside the automated alternatives. In this post: What affects […]

SharePoint Copy Files: Everything You Need to Know Read More »

SharePoint Permission Roles Quick Overview

Worth flagging directly before anything else: neither of the two role-assignment examples that usually accompany this topic will actually run against a fresh list or library — both skip breaking permission inheritance first, which SharePoint requires before it accepts a role assignment at all. This post covers the built-in roles, the real numeric IDs behind

SharePoint Permission Roles Quick Overview Read More »

SharePoint Attachments Operations with PnP.js in React

List attachments keep a file tied directly to a specific item — a screenshot on a bug, a resume on a candidate record — without setting up a separate document library. This covers uploading, reading, and deleting them with PnP.js inside a React-based SPFx component, plus batching when you’re handling more than one file at

SharePoint Attachments Operations with PnP.js in React Read More »

Regular Expressions (Regex) : Quick Guide

Regex looks intimidating until you’ve internalized maybe a dozen symbols — after that it’s just the fastest way to validate, search, or extract text by pattern instead of writing a string-parsing function by hand. This is a working reference: the symbols that come up constantly, three real examples in different languages, and when it’s actually

Regular Expressions (Regex) : Quick Guide Read More »

All about SharePoint Permission Roles

SharePoint ships with ten built-in permission levels — Full Control down to Restricted Read — covering most access-control scenarios without needing a custom permission level. Here’s what each one actually grants, and how to assign them via PowerShell in both SharePoint Online and on-premises. In this post: The ten built-in permission levels · Assigning a

All about SharePoint Permission Roles Read More »

SharePoint ‘Save Site as Template’ Challenges

“Save Site as Template” used to be the easy answer to “how do I spin up another site that looks like this one” — export the structure, lists, and content types to a .wsp file, apply it to a new site, done. It’s still there in SharePoint On-Premises. In SharePoint Online, it’s effectively gone for

SharePoint ‘Save Site as Template’ Challenges Read More »

Methods on how to Add Attachments to SharePoint List

SharePoint doesn’t have one “add attachment” button that works everywhere — which method you reach for depends on whether you’re writing client-side JavaScript, building an SPFx web part, or automating something from a script. The three approaches below all do the same thing: attach a file to a specific list item. The difference is what

Methods on how to Add Attachments to SharePoint List Read More »

SharePoint REST API File Uploads Using JavaScript and PnPjs

Two ways to upload a file to a SharePoint document library via code — raw REST calls, or PnPjs — plus what changes once the file is big enough that a single request isn’t the right approach anymore. In this post: Option 1: raw REST API · Option 2: PnPjs · Large files: chunked uploads

SharePoint REST API File Uploads Using JavaScript and PnPjs Read More »

SharePoint Data Handling with PnP Batching Queries

Updating a thousand SharePoint list items one request at a time is slow and burns through API throttling limits fast. PnPjs batching bundles multiple operations into a single HTTP call instead — here’s the syntax for both the older and current versions of the library, and the real limit worth knowing before you rely on

SharePoint Data Handling with PnP Batching Queries Read More »