youtube image
From YouTube: Adaptive Card Extensions strategy pattern for multi-action QuickView

Description

In this 9-minute developer-focused demo, Marcin Wojciechowski relates how with complex ACE’s, handling many conditional quick view onActions (many if action.id statements), can seriously complicate code. Example scenario – exposing news items with next and previous actions, options to like and comment, and the ability to post news in a Teams channel. See how to move from many onActions to a single action with refactoring. See how actions are handled/combined by the ActionExecutor! Easily add new actions and zero impact to QuickView code. This PnP Community demo is taken from the Viva Connections & SharePoint Framework Bi-weekly sync call recorded on June 30, 2022.

Demo Presenter
• Marcin Wojciechowski (Valo) | @mgwojciech

Supporting materials
• Sample - ace-strategy-pattern | https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/ace-strategy-pattern
• Wikipedia - Strategy pattern | https://wikipedia.org/wiki/Strategy_pattern

Learn more
• Microsoft 365 Unified Sample gallery - https://aka.ms/m365/samples
• Microsoft 365 Platform Community in YouTube - https://aka.ms/m365/videos
• Microsoft 365 Platform Community - http://aka.ms/m365/community