SCSS

SharePoint Development : SPFx Folder Structure Explained

SPFx (SharePoint Framework) scaffolds a fairly opinionated folder structure via its Yeoman generator — here’s what each part actually does, and the two competing ways to organize your own code inside src/ once a project grows past a single web part. In this post: The scaffolded structure · src/ and config/ in detail · Type-based […]

SharePoint Development : SPFx Folder Structure Explained Read More »

SharePoint Attachments Operations with PnP.js in React

Managing attachments in SharePoint lists is a crucial aspect of many business applications. Whether it’s uploading files, retrieving them, or deleting them, an efficient approach ensures seamless user experience and better performance. In this article, we’ll explore how to handle SharePoint list attachments using PnP.js, a powerful JavaScript library designed for SharePoint interactions. We’ll implement

SharePoint Attachments Operations with PnP.js in React 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

What is Gulp? Gulp is an open-source JavaScript task runner that automates repetitive tasks in development workflows. It helps developers handle tasks like minification, compilation, linting, testing, and browser reloading efficiently. Unlike other task runners, Gulp uses a code-over-configuration approach, making it more readable and easier to set up. It processes tasks using Node.js streams,

Gulp: Automate Your Workflow Like a Pro Read More »

Methods on how to Add Attachments to SharePoint List

When working with SharePoint lists, you might find yourself in a situation where you need to attach files to a list item. This is especially useful for document approvals, storing additional details, or just keeping relevant files together. Thankfully, SharePoint provides multiple ways to achieve this, including the SharePoint REST API, PnPjs, and PnP PowerShell.

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 »

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 »

Rendering SharePoint List Extensions for Specific List Templates

SharePoint Framework (SPFx) extensions provide a powerful way to customize and enhance SharePoint lists and libraries. However, there are scenarios where you want to render your SPFx list extensions (like Command Sets, Field Customizers, or Application Customizers) only for specific types of list templates. This is achievable by modifying the ClientSideInstance.xml and elements.xml files in

Rendering SharePoint List Extensions for Specific List Templates Read More »