Get all Suspended or Terminated Workflow instances in SharePoint Online
Here is some quick code I put together today to get all Suspended workflow instances on a list in SharePoint Online.This code can be used to get all instances for a given status. (Suspended, Terminated...
View ArticleSharePoint Framework: Org Chart web part using Office UI Fabric, React and...
Here is a SharePoint Framework web part I have put together to show an organisation chart for the current user: Code is available on GitHub as always: https://github.com/vman/SPFx-Org-Chart(click to...
View ArticleWorking with the CSOM External Sharing API in SharePoint Online
I was recently working on a SharePoint Online project where we had quite a heavy use of the External Sharing CSOM API.Here are some utility functions I have put together which might be useful in the...
View ArticleIntroducing: SharePoint Online Public CDN Manager
The Office 365 Public CDN Developer Preview was recently announced which allows static assets like images, JavaScript, CSS etc. to be hosted in a globally available CDN. Find out more about it...
View ArticleWorking with the REST API in SharePoint Framework (SPFx) RC0
The SharePoint Framework Release Candidate 0 (RC0) was released recently which had some breaking changes compared to the previous drops. You can see the release notes here:...
View ArticleSend emails to authenticated external users using CSOM
Here is some quick code I put together to send emails in SharePoint Online to external users who have accepted sharing invitations and signed in as authenticated users.Before having look at the code, I...
View ArticleCreate/Update SharePoint list items with REST without the '__metadata' property
When updating list items in SharePoint with the REST API, we need to know the ListItemEntityTypeFullName of the list item we are planning to update. There are some good examples on MSDN regarding this...
View ArticleUsing TypeScript async/await to simplify your SharePoint Framework code
I recently learned about the Async/Await functionality in TypeScript and I was really surprised how easily you can simplify your code with it. Using Async/Await, you can get rid of spaghetti code as...
View ArticleError handling in SharePoint Framework when using Async/Await
This is a quick follow up post to my previous post Using TypeScript async/await to simplify your SharePoint Framework code.Since publishing my previous post, some folks have asked how would the error...
View ArticleGetting the current context (SPHttpClient, PageContext) in a SharePoint...
I have briefly written about building SPFx services (using ServiceScopes) in my previous post, SharePoint Framework: Org Chart web part using Office UI Fabric, React and OData batchingIn this post,...
View ArticleAuthenticating to the Microsoft Graph API in PowerShell
In this post, lets have a look at how we can authenticate to the Microsoft Graph REST API through PowerShell. There are a few examples already available online but either they refer to old endpoints or...
View ArticleCreate Azure AD App Registration with Microsoft Graph API and PowerShell
In my previous post, we had a look at how to authenticate to the Microsoft Graph API in PowerShell. In this post, lets have a look at how we can use the Microsoft Graph REST API to create an Azure AD...
View ArticleAccess Microsoft Graph from classic SharePoint pages (SPFx GraphHttpClient...
Recently, an update to the SharePoint Framework was released which introduced some cool new features including ApplicationCustomizers, FieldCustomizers and CommandSets. You can read more about the...
View ArticleIncluding only required Babel polyfills with Webpack
If you are using something like Object.assign or Promises in your ES6/TypeScript code, you will sooner or later come across the fact that IE11 does not support them natively. In such cases, the natural...
View ArticleUsing Redux Async Actions and ImmutableJS in SharePoint Framework
I was recently working on converting my hobby project Office 365 Public CDN manager from JS, Knockout and jQuery into TypeScript, React and general ES6 code. It was a really great learning experience!...
View ArticleUsing CSOM with an account configured with Multi-factor Authentication (MFA)
Here is some quick code I put together for using CSOM with an account which has MFA enabled. It uses the SharePoint PnP Core library which can be found here:...
View ArticleWorking with the Page Comments REST API in SharePoint Communication sites
If you have been playing around with SharePoint Communication sites, you might have noticed there is commenting functionality available now on site pages. Digging deeper on how this functionality is...
View ArticleSimultaneously run multiple versions of the SPFx Yeoman generator with npx
This is a topic which has been discussed quite a lot since the launch of the SharePoint Framework. The SPFx Yeoman generator is recommended to be installed globally, but what if a new version is...
View ArticleIntroducing spfx-extensions-cli: A command line tool to manage SPFx extensions
I have just published a CLI tool to view and manage SharePoint Framework extensions:https://www.npmjs.com/package/spfx-extensions-cliMore details in the package README.Code is available on GitHub. Feel...
View ArticleSharePoint Online: Combine and reuse multiple site scripts in a site design
Site scripts and site designs were recently introduced in SharePoint Online/Office 365. They provide a great way to hook into the out of the box site creation dialog to apply customisation to the site...
View Article