Fixing the Microsoft Word Interop Null Reference Error on Windows Server 64-bit
If you’re running a 64-bit Windows Server and using C# to automate Microsoft Word via Interop, you may encounter a frustrating null reference error on the following line: This error happens because Microsoft Word Interop expects a “Desktop” folder within the system profile directory, which isn’t created by default on 64-bit Windows Server installations. The […]
Renewing Client ID And Client Secret in SharePoint (legacy)
This post outlines how to extend a Client ID / Client Secret pair using PowerShell. IntroductionBy default, a Client ID / Client Secret pair is valid for just one year. This guide will show you how to extend your client/secret using PowerShell, eliminating the need to generate a new pair. Please note that Microsoft will […]
Unlocking Efficiency with ShareMaster: Effortless File Version Reset
Unlocking Efficiency with ShareMaster: Effortless File Version Reset Are you on the lookout for a straightforward method to reset file versions within your SharePoint document library? Look no further than ShareMaster, a robust tool designed to streamline version control and simplify the process of rolling back file versions. ShareMaster grants you the ability to effortlessly […]
Hiding columns based on permission levels
Often I will use column in a SharePoint list as a button. This is accomplished by using column formatting to transform the column into a button. Sometimes we only want certain users to see the button. For example, I have created a publish / share button on a SharePoint list – it makes no sense […]
Creating an Unlicensed Microsoft 365 User
Microsoft Office 365 allows us to create unlicensed users. While an unlicensed user will not have a email address, they are able to access certain office 365 applications, such as SharePoint or the Office 365 Administration page. To create an unlicensed user, follow the steps below: Browse to https://admin.microsoft.com Click on Users – Active Users […]
SharePoint Online – App Only Calls returning “System.Net.WebException: The remote server returned an error: (401) Unauthorized”
Recently I had an issue with a SharePoint Remote Event Receiver that was returning a 404 error. I had given correct permission in the appmanifest.xml. The clientcontext was being created with the following code: After digging around I discovered that newer SharePoint Online sites have app only permissions disabled. To enable it I ran the […]
Getting all events in a Calendar using Microsoft Graph and C#
I couldn’t find any examples online on how to get all events in a calendar programmatically using Microsoft Graph and C#. The only example I could find would return 10 items, being the page limit. In order to save others time, I decided to post the way I managed to do it, using Skip. This […]
Searching the SharePoint Recycling Bin
Searching the SharePoint Recycling Bin While the SharePoint recycling bin is useful when it contains only a few items, it becomes downright unusable when it contains thousands of items. The SharePoint recycling bin is shipped without a search function. Finding a single file in a SharePoint recycling bin of thousand of items is like searching […]
Checking if string is empty or null in MS Flow / Power automate
Below is a simple way to check if a string is null or empty in MS flow. It works by first testing if the string is null, and then checking if the string has 0 characters. Steps: Add a condition step Change the condition to OR Add the string variable, and first test to see […]
Updating Filename in MS Flow (Power automate)
Updating Filename in MS Flow (Power automate) This is a walk through on how to update a filename while keeping the same file extension in MS Flow. In this example we are going to assume the filename is saved in a Variable called “Full File Name”. The walkthrough will name a file to <filename>_1.<extension> We […]
- 1
- 2