Category Archives: Uncategorized

Cancel Running workflows prior to saving an item.

This is a problem for workflows that delay until a certain date before sending out reminders. The user creates an item with 1/27/2018 as the due date and the workflow starts waiting until 1/27/2018 to send out a reminder. If … Continue reading

Posted in react, spfx, Uncategorized | Tagged , | Leave a comment

Code Editor Property Pane Control for SPFX WebParts

I submitted a PR to the spfx-property-controls repository today for a new SPFX property pane control – the PropertyFieldCodeEditor control. The new control uses the Ace editor under the hood (see https://ace.c9.io/). The Ace editor supports editing many types of … Continue reading

Posted in react, sharepoint, spfx, Uncategorized | Tagged , | Leave a comment

Using Async/Await with JSOM

Async/Await can make JSOM coding much easier and is simple to set up. All you need to do is wrap your executeQuery calls in a Promise, then you can await them! Here’s a full example of a method that hides … Continue reading

Posted in Uncategorized | Leave a comment

Using the Office UI Fabric Grouped DetailsList in React-based SPFX Webparts.

Say you have an array of objects in your application that looks like this export class Widget { public constructor( public id: number, public title: string, public isActive:string, public manufacturer:string ) { } } And you want to display the … Continue reading

Posted in fabric, react, spfx, Uncategorized | Tagged , , | Leave a comment

Debugging SPFX Gulp build tasks in VS Code

In VS Code click View==>Debug from the main menu The Debug box will appear: Click the dropdown in the Debug Box and select Add Configuration. From the list of configurations select {} Node.js: Launch Program:   Create a configuration with … Continue reading

Posted in javascript, react, spfx, Uncategorized | Tagged | Leave a comment

Search-Based Global Navigation in SharePoint On-line

While migrating our Team Sites from SharePoint 2010 to SharePoint On-line we noticed that response time of the sites on SharePoint Online was significantly slower than SharePoint 2010. Researching it we discovered that the issue was caused by our use … Continue reading

Posted in Powershell, search, sharepoint, Uncategorized | Tagged | Leave a comment

Powershell Script to move documents between sitecollections with version history

##see https://shannonbray.wordpress.com/2010/06/26/moving-sharepoint-2007-sites-to-another-environment-with-powershell/ Add-PSSnapin microsoft.sharepoint.powershell -ErrorAction SilentlyContinue [void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Deployment”) $fileName = “exportedWeb.cmp” $fileLocation = “c:export” $SourceSiteURL = “http://edmsqa.kznsands.local/sites/CP” $docid=“CPDOC-46-30” $DestinationSiteURL = “http://edmsqa.kznsands.local/sites/cpccold/” $DestinationWebName = “MPPProd” # need to add logic to use rootweb if this is null $DestinationLibraryName=‘Documents’ ##############################################The Export Script $SourceSite … Continue reading

Posted in Powershell, sharepoint, Uncategorized | Tagged | Leave a comment