Useful SharePoint answers, trial and error SharePoint experience blogged


Resize SharePoint Online image by using the Microsoft Graph APIs

Resize SharePoint Online image by using the Microsoft Graph APIs

The thumbnails Microsoft Graph API can be utilized for resizing images hosted in SharePoint in case we need one rendered in different resolution for our custom application, SharePoint Framework web part or even Microsoft Teams app. The thumbnails api can be used to get thumbnail for SharePoint site page or file stored in document library as well.


The SPListItem being updated was not retrieved with all taxonomy field

The SPListItem being updated was not retrieved with all taxonomy field

Recently me and my team deployed SharePoint site in Office 365 that is for business in Argentina. When we attempted to update list item taxonomy field using the REST API ValidateUpdateListItem we got error in return "The SPListItem being updated was not retrieved with all taxonomy fields" .


Record page hit when SPA page transitioning in modern SharePoint sites

Record page hit when SPA page transitioning in modern SharePoint sites

Recently, SharePoint page transitioning has changed from server-side page load to offline first, client-side page transitioning. There is page router component working on the client that handles the page transitioning and, in many cases, modern SharePoint site works as a single page application. This changed the state of the app customizers where onInit event of the customizer does not fire with page transition anymore. So, how we record page hit then?


The CreateCopyJobs API, copy or move SharePoint files or folders

The CreateCopyJobs API, copy or move SharePoint files or folders

This is overview on how the Office 365 CreateCopyJobs API (/_api/site/CreateCopyJobs) works from my observations. For the past months we are seeing new Copy and Move buttons on the SharePoint modern document library actions bar. The APIs behind can copy or move files or folders across different SharePoint site collections or to OneDrive for Business. Here is what I discovered about the APIs.


Create custom Display Templates in classic SharePoint Search site

Create custom Display Templates in classic SharePoint Search site

Create and deploy custom Display Template in classic SharePoint Search site that tracks URL clicks using application insights. We can take the advantage of having our own custom display templates in classic SharePoint search results page to enrich the user experience.


Create PowerShell cmdlet using PowerShell

Create PowerShell cmdlet using PowerShell

Automate devops pipeline using PowerShell cmdlet built with PowerShell instead of C#


Use PowerShell to configure SharePoint search result page tabs

Use PowerShell to configure SharePoint search result page tabs

Configure classic SharePoint search results page navigation programmatically


Analytics using Application Insights on SharePoint classic sites

Analytics using Application Insights on SharePoint classic sites

Use App Insights to track pages, monitor page load times or send custom data events in SharePoint classic site


PowerShell retry logic code

PowerShell retry logic code

This is a small PowerShell retry logic code snipet so I do not have to search for one ever again


Add Taxonomy filed in SharePoint search refinement web part

Add Taxonomy filed in SharePoint search refinement web part

Shows how to add terms with their human readable names as a refiner in a classic search refinement web part