MVPs are "independent community leaders who share their passion, technical expertise, and real-world knowledge of Microsoft products with others." - Overview,

Office 365 Advent Calendar – 21 Get all Instances of a Web Part in a SharePoint Online Site


Sometimes you may need to figure out where a specific type of web part has been used. Today, I’ll show you how you can check all pages in your Site Pages library for a specific web part.

I’ve had this code for a while as I was looking for some specific web parts (Content Editor) before. Yesterday, I briefly saw a blog post on announcing the deprecation of the Visio Web Access web part on SharePoint Online (as Visio Online is coming!), though that blog post has disappeared again (I suspect we’ll see it again soon). So I