SPFX

SharePoint Attachments Operations with JavaScript

SharePoint attachments — files uploaded directly onto a list item, not into a document library — are common in forms and ticketing-style lists. Here’s how to create, read, and delete them with plain JavaScript against the REST API, no PnPjs required. In this post: Uploading an attachment · Reading attachments · Deleting an attachment · […]

SharePoint Attachments Operations with JavaScript Read More »

NPM Link and Gulp: Understanding the Power of Local Development

npm link creates a symlink between a globally-linked local package and another project, so you can develop a package and test it live in a consuming project without publishing it to the registry first. In this post: Worked example: building a custom Gulp plugin · The gotcha to know about · Unlinking and other package

NPM Link and Gulp: Understanding the Power of Local Development Read More »

Gulp: Automate Your Workflow Like a Pro

Gulp is a JavaScript task runner that automates the repetitive parts of a front-end build — minification, compilation, linting, browser reload — using plain JavaScript instead of a config file. It processes files through Node.js streams rather than writing intermediate files to disk, which is a meaningful part of why it’s fast: less disk I/O

Gulp: Automate Your Workflow Like a Pro 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 Content Types: The Good, The Bad, and The Ugly

A SharePoint Content Type is a reusable bundle of columns, settings, and (optionally) a document template that you define once and apply across multiple libraries — instead of manually adding the same “Invoice Number,” “Due Date,” and “Amount” columns to every library that handles invoices. In this post: Why use content types · Creating one

SharePoint Content Types: The Good, The Bad, and The Ugly 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 »

How to Migrate SharePoint Online Content to Another Tenant: All Available Options

Moving SharePoint content between tenants — for a merger, acquisition, or restructuring — has more options than it used to, ranging from a manual drag-and-drop to a native Microsoft-managed pipeline. What you keep (permissions, version history, workflows) varies a lot between them, which is the real deciding factor, not just price. In this post: Native

How to Migrate SharePoint Online Content to Another Tenant: All Available Options Read More »

SPFx: Check if User is an Admin or an Owner is SharePoint

Introduction When working with SharePoint Framework (SPFx), there are times when you need to determine whether a user has administrative privileges. This is especially useful in scenarios where certain UI elements or functionalities should only be accessible to administrators. In this blog, we’ll explore how to check if a user is an admin using the

SPFx: Check if User is an Admin or an Owner is SharePoint Read More »