Javascript

PnPJs .getAll() Function to get all list items Explained

Worth leading with directly, since it changes what this post can actually recommend: `.getAll()` was removed entirely in PnPjs v4, the current major version as of 2026. The replacement isn’t a renamed method. It’s a genuinely different pattern, the same async-iterator (`for await…of`) approach covered from the JavaScript-fundamentals side in Does “for…of” loop wait for

PnPJs .getAll() Function to get all list items Explained Read More »

Unlocking the Potential of PnP SPFx: Functionalities, Limitations, Use Cases, and Best Practices

PnP (Patterns and Practices) is the umbrella for several separate tools that speed up SharePoint Framework development, PnPjs for calling SharePoint from code, PnP PowerShell for admin/automation tasks, and a library of reusable React controls for SPFx web parts. This post covers what each actually does, where the real limitations are, and two places the

Unlocking the Potential of PnP SPFx: Functionalities, Limitations, Use Cases, and Best Practices Read More »

Does “for…of” loop wait for async awaits in JavaScript?

Worth a direct correction before anything else: a `for…of` loop does wait for an `await` inside it. Each iteration pauses until the awaited promise resolves before the loop advances to the next one. That’s the opposite of what a stub answer to this question sometimes claims, and it’s easy to get backwards since the similarly-named

Does “for…of” loop wait for async awaits in JavaScript? Read More »

SharePoint Term Store with PowerShell and JavaScript

This post covers a different problem than How to Update Term Store Values with REST API, MS Graph, JavaScript, and PnPjs. That post covers editing the terms themselves (renaming, restructuring the taxonomy). This one is about the far more common task: tagging a list item with an existing term through a Managed Metadata column, in

SharePoint Term Store with PowerShell and JavaScript Read More »

Creating Multiple SharePoint List Items Using SharePoint REST API

Creating many list items in one call means the same SharePoint REST `$batch` endpoint covered from the PnPjs side in SharePoint Data Handling with PnP Batching Queries. Worth reading there for the wire-format details and the real 100-request cap, both of which apply here too. This post stays on the raw `fetch`-based approach specifically, for

Creating Multiple SharePoint List Items Using SharePoint REST API Read More »

Handling International Date Functionalities in JavaScript

Formatting a date correctly for a global audience is a different problem than storing or converting it between time zones, for that side (native `Date` limitations, the new `Temporal` API, and which library is still current), see Store and Display Dates Properly in JavaScript. This post stays specifically on locale-aware formatting: getting the date order,

Handling International Date Functionalities in JavaScript Read More »

Store and Display Dates Properly in JavaScript

Worth leading with directly, since it’s the biggest recent change to this topic: JavaScript now has a native, built-in replacement for the notoriously bad `Date` object. The `Temporal` API reached TC39 Stage 4 (officially part of the language spec) in March 2026 and is already shipping in Chrome, Firefox, and Edge: immutable, timezone-aware, and a

Store and Display Dates Properly in JavaScript Read More »