youtube image
From YouTube: Consuming Search API in Viva Connections Adaptive Card Extension

Description

In this 12-minute developer-focused demo, Marcin Wojciechowski shares a method to expose content search almost natively in mobile. In this ACE see implementing the Search API client and exposing the setQuery method, creating an adaptive card with input and search button, creating an adaptive card to present the results (template by João Mendes), and adding navigation events. You can use SharePoint Search API or Graph Search API, use the quickViewNavigator.

This PnP Community demo is taken from the Viva Connections & SharePoint Framework Bi-weekly sync call recorded on February 9, 2023.

Demo Presenter
• Marcin Wojciechowski (Valo) | @mgwojciech

Supporting materials
• Sample - primary-text-card-search | https://github.com/pnp/sp-dev-fx-aces/tree/main/samples/PrimaryTextCard-Search
• npm Package - MGWDEV M365 Helpers | https://www.npmjs.com/package/mgwdev-m365-helpers
• Code snippet - sp-browser-utils | https://github.com/mgwojciech/sp-browser-utils/blob/main/utils.js

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