← home 39 posts · 2023–2026 · rss

The Archive

Every post on the blog: war stories from real .NET, Azure, Microsoft Graph and SharePoint projects, with the code, the failures and what the docs left out.

Export files as zip from SharePoint

Dec 1, 2024 · 5 min

Export files as zip from SharePoint

Learn how to download multiple SharePoint files as a zip from C# code, using Graph batching to fetch them and streaming each to disk instead of into memory.

#sharepoint

Update list to use content type

Nov 10, 2024 · 3 min

Update list to use content type

We've all tried creating a SharePoint list without using Content Types from the start. It seems like the quick solution, but it can lead to challenges later when restructuring the list. This post explains why using Content Types from the beginning is a smart move that can save time and hassle in the long run.

#sharepoint

SPFx Audience targeting

Apr 9, 2024 · 3 min

SPFx Audience targeting

Learn how to build an SPFx wrapper component that shows or hides content based on Microsoft 365 group membership, using getMemberGroups and a session cache.

#sharepoint

Web Api logging attribute

Feb 18, 2024 · 3 min

Web Api logging attribute

Learn how to move Web API logging out of every controller method and into one C# attribute built on IActionFilter, logging the controller and its parameters.

#csharp

SQL save changes w. trigger

Feb 3, 2024 · 6 min

SQL save changes w. trigger

Easiest way to keep track of which changes have been made to an object, and likewise, who has carried out these changes.

#csharp