The SharePoint Trip to Modern – Are We There Yet? Part 2

On the trip to SharePoint “Modern”…  I’m having a serious case of deja vu. Some macro-patterns I saw eons ago as a Microsoft Windows Developer I see again in SharePoint “Modern”… especially with SharePoint “Modern” forms.

SharePoint forms – “classic” and “Modern” – fall into three broad categories: list and library forms, survey forms, and “forms over data” applications (aka InfoPath). Classic forms in each category are functional… but hard to customize, and definitely not beautiful. So where are we, exactly, on the trip to modern forms, and what are these “macro-patterns” I see?

Let’s break it down.

Microsoft Forms is the “Modern” replacement for SharePoint classic surveys, PowerApps is the “Modern” replacement for InfoPath, and Modern list forms …we’ll discuss those momentarily.

I never cared much for SharePoint “classic”  surveys.  They seem too toy-like for anything but the simplest of surveys, and look ugly (to me). In fact, beautifying them requires custom development… typically with React or Angular, and supporting documentation for users to use it, site owners to configure it, and developers to support it. All for very little functionality. Which is why I was happy to see Microsoft Forms…  the “Modern” answer to SharePoint “classic” surveys.

Actually, I thought Microsoft Forms (which sort of sneaked up on me last year) was also too toy-like at first. But with constant improvements over the last year…  I think Microsoft has a winner here. The surveys are easy to design, look nice, are easily embedded in a SharePoint page, and easy to configure. Microsoft Forms plays well with others too – particularly with Microsoft Flow. There is even a curious integration with Excel (someone please tell me if this is useful). If Microsoft Forms stays on its current trajectory, it’ll be the SurveyMonkey® for corporate intranets.

PowerApps is out of the toy-stage, and positioned to replace InfoPath.  I expect PowerApps will do for SharePoint what Visual Basic did for Microsoft Windows development… and become the most popular tool for SharePoint “Modern” power users and developers.  A word to the wise for “I’m too cool for PowerApps… I do React/Angular/Vue” developers out there….  Visual Basic supplanted C++/MFC for corporate Windows development – because it was easier to learn, and quicker for creating “Forms over Data” applications. Will history repeat here, and relegate SPFx development to a smaller – but important – niche for high-end customizations? Maybe.  Regardless, I predict the PowerApps tsunami is coming. Are you ready?

Lastly, consider SharePoint List forms. Specifically, the classic EditForm.aspx, NewForm.aspx and listview.aspx forms, and their Modern alternatives. Many sophisticated SharePoint workflows depend on highly customized versions of these forms to view, create and update SharePoint list items.

SharePoint List/Library forms can be quite complex mini-applications in service to SharePoint workflows. Form data must be loaded, and fields labelled, disabled/enabled, validated, hidden or revealed – depending on the workflow state and who is looking. Error handling must be friendly and helpful.  Extra points for beauty.

Clients often don’t realize the effort required to achieve all this…  so it’s important to set expectations, and decide if functional – albeit ugly – forms are sufficient.  Or is beauty important too?

The “Microsoft approved” way to customize SharePoint “classic” forms is via JS Link and Client Side Rendering (CSR)  – you add customizations with client-side JavaScript/TypeScript, using Microsoft-provided hooks at key points in the form life-cycle. The coding patterns take some getting used to. And to make the forms visually appealing, you’re on your own. Many SharePoint developers have crashed and burned attempting to wrangle the ridiculously daunting CSS in SharePoint “classic” forms. Which brings me to SharePoint “Modern” form options.

We’re still screwed…  but less so. Beauty is within reach – with Microsoft Office UI Fabric React-based components and SPFx. But a few things are missing for developers.

When I built my first SharePoint “Modern” modal dialog box as an SPFx web part with these components, I was reminded of the early days of Microsoft Windows development, when Microsoft provided a Windows Software Development Kit (SDK) without a GUI-based dialog editor. Windows developers resorted to “imagining” their dialog layouts while coding them with a text editor. It was highly inefficient….  much like the situation today with SharePoint “Modern” modal dialogs. There is no GUI-based form Editor… the React-based field controls are “laid out” using JSX in a code editor. I hope Microsoft will get around to providing a GUI-based editor for list-item forms with Office UI Fabric React components (yes… I know Modern lists can be customized with PowerApps – but it’s not a viable option – not yet – for a SharePoint Modern modal dialog box containing Office UI Fabric components).

What else is missing? For starters, the Office UI Fabric React components lack “SharePoint awareness”. So you’ll need an abstraction layer over them. You could add your own abstraction layer… but smarter to use the SharePoint Patterns and Practices SPFx React Controls. These extend the Office UI Fabric React controls… adding SharePoint awareness.  But even here… we see signs of immaturity. Take for instance the oh-so-innocent looking People Picker control.

A SharePoint People Picker control is one of the nastiest, most difficult form controls to write yourself. And this is from personal experience. It’s the “iceberg” of SharePoint field controls, because so much is hidden beneath the surface. So I was very happy to see it offered in the Office UI Fabric React component library… that is, until I discovered it was neutered.  That is, the darn thing isn’t connected to SharePoint (or rather, the Azure AD instance attached to a SharePoint tenant).

But the PnP People Picker control fixes this.  You add it within your Office UI Fabric Dialog component…  and it just works…. almost. At the time of this writing, it lacks a property to initialize the people picker with users and/or SharePoint Groups (I’ve requested an enhancement to rectify this… so stay tuned). This means that if you have an existing list item containing a people field, and that people field is not empty… you cannot initialize the people picker control with that person.  While we’re waiting for a fix, you can do what I did and create your own people picker abstraction layer, starting from this React people picker control.

My beloved Knockout library is useless with these Office UI Fabric controls (and the PnP offshoots)… because you cannot add the Knockout bindings to the HTML attributes within the controls.. you don’t have access to the innards. Knowing how much Knockout reduces “classic” form complexity,  I worried that Modern form complexity would be unwieldy. But my fears were unfounded, since the controls have sufficient hooks to capture mouse and keyboard events, and properties to control the enabling, disabling, and show/hide behavior. At this point, it’s probably better to show you, rather than tell you about it.

But let’s pull over at the next rest stop….   I need a short break before showing you some code. And no… stop asking… we’re still not there yet… on our SharePoint trip to Modern. But almost.

Here’s our stop… want some Ice cream?

-bob

 

 

 

 

 

 

 

 

The SharePoint Trip to Modern – Are We There Yet? Part 1

Is time travel possible? It sure feels like it with the SharePoint Modern experience. Leave it to the Microsoft SharePoint team to turn me into that little boy on a car trip, asking “Are we there yet?”.

I’m referring to the current state of SharePoint, and the trip to “Modern”. I’m loving the sights along the way…  but when is this journey going to end?

As a SharePoint architect, I weigh many aspects of the platform (and the client’s needs and capabilities) before formulating a solution. This has been – ahem – especially challenging as Microsoft sloooowly releases its “Modern” vision piecemeal.

Hub sites, Communication sites, modern team sites, modern lists, O365 Groups, Flow, PowerApps, SPFx web parts and extensions, Microsoft Teams….  and the tools to regulate, control and govern everything….  all in different states of readiness and maturity.

This drip, drip, drip of wonderfulness puts SharePoint architects and developers in a weird spot… titillating us with ooh-la-la “modern” features…  but making us wait… drip.. for feature gaps to close… drip… before using them.  Like you, I am reluctant to deploy yet another “classic” team site, create yet another custom MasterPage, design yet another SharePoint 2013 Workflow, as the “new” taunts me….  dares me… to “go modern”. But are we there yet?  No. Not yet. But almost.

Of course, it’s not all or nothing…  some modern goodness is ready now…  Microsoft Teams has “blown up” (popularity-wise, in a good way)…  and the “low code, no code” ways to extend it are terrific.  At Slalom (where I work as a Solution Principal in the Content & Collaboration practice in NYC), we’ve published a Slack vs Teams whitepaper that is extremely popular among our clients evaluating both.  And while Teams has caught fire in the last year, the recently released governance & compliance controls are only now allowing highly regulated industries to realistically consider adopting Teams.

Microsoft Flow is terrific…. I’ve used it for over a year now and use it whenever I can….  but there are many things it still cannot do (such as elevated permissions not tied down to a specific user, or long-running state-based workflows, to name two features Flow currently lacks), and I find myself “enhancing Flow” with the occasional SharePoint 2013 Designer workflow.

Modern SharePoint publishing disappoints me – in its current state – as I wait for the modern equivalent to classic page layouts, Master Pages, item scheduling, and a better way to control article/news metadata than the way explained here. And while the recently announced “News Approval” workflow is very important to some organizations, in practice, I found many organizations preferred to keep it simple and forgo the classic “approval workflow”, instead using just check-in, check-out and Major/Minor drafts with versioning.

I’d like to see a better way to schedule articles. In classic, the way this worked is that a background timer job changes an article from draft to published, or visa-versa – depending on the schedule. But to create an article archive for “no-longer published articles” that visitors could search for and re-read, the classic scheduling approach is bad, because when an article is in “draft mode”, it cannot be read by visitors. I’d prefer a “modern” approach that avoids this technique, so visitors can search and view an archive of old articles… OOTB. But I digress.

Microsoft Communication sites bring the “wow”. Just the other day, we created one for a client unaware of them. The client was resigned to getting a “classic” experience.  So we surprised them (not always a good idea, but OK in this case). In a short demo, I heard a half-dozen “awesomes” and several “wows”… all for only a few days of configuration (and some snazzy images). I want all my engagements to delight clients like that.

I think Communication sites make ideal Hub sites. The “hubiness” idea is not new with Modern SharePoint. Classic SharePoint has offered the “Portal Site Connection” feature going back at least to SharePoint 2007 MOSS.  But Modern Hubs are so much better.  We’ll get to that later.

Two more “classic features” awaiting modernization are Document Sets and Search. I don’t use Document Sets that often, but when I need them, they are terrific. I find them to be most useful in “lawyer-like” scenarios, where a “matter” is best handled with several documents that are related.  Document Sets allow all documents in a set to be auto-tagged with the same meta-data. And provide a logical grouping that is natural to “lawyer-like” scenarios.  Microsoft has promised to modernize the Document Set experience – BUT I’M STILL WAITING.

Search is the “SharePoint killer app” (MS Teams not withstanding)… and has been since SharePoint 2013. But in my experience over the years, many clients have not realized the value.  One reason is lack of what it can do, when properly configured. It requires expertise in several areas –  such as defining a metadata taxonomy and associated site columns and content types, configuring the search web parts and customizing Display Templates. These are all do-able, repeatable and don’t require a PhD.  At present, there are no modern search web part equivalents to the “classic” ones. I anxiously await their arrival. Until then, I’ll continue to build the “classic” search experience with a “classic” publishing site collection and “classic” search web parts. (By the way, this is not in lieu of using modern “delve-like” search experiences based on Microsoft Graph. The graph-based modern search experience fills a different niche – highly personalized and useful for discovering new – often unanticipated – search results.  The “classic” search experience will remain extremely valuable for “Knowledge Management” search experiences, where content is authoritative and curated, and users have a general idea of what they’re looking for, and seek authoritative results.

In upcoming articles, I’ll take a deeper look at many modern capabilities, highlight the gaps, and suggest work-arounds where possible.

So sit back and enjoy the ride.  And together we’ll answer  “Are we there yet?”

-bob

Modern SharePoint Information Architecture

pnp-hub sites

I found this slide (from Vesa Juvonen’s March 2018 PnP video on SharePoint Hub Sites video presentation)  to be a good illustration of the new, modern direction for SharePoint site IA. It stresses a “flat-earth” approach for modern site collections… dispensing of site collection sub-sites in the name of O365 performance, and the flexibility and ease of making and breaking site associations between hubs and root-site site collections.

Notice the black-pentagons in the diagram…  for those scenarios where “classic” site collections need sub-sites.  I do think there remain scenarios for these until modern sites fill the gaps….  scenarios where search sites, record centers and departmental IA concerns (e.g. site collection specific site columns, Content Types, search, document sets, etc) are required.

Interestingly….  2 hours after I published this, Microsoft released a Hub Planning Guide.  After a quick read, I think many (but not all) of the ideas in the guide are reasonable. I’ll have more to say about this soon.