Pro User
Timespan
explore our new search
​
SPFx: Build a Cafeteria Adaptive Card
SharePoint Online
Oct 20, 2025 7:00 AM

SPFx: Build a Cafeteria Adaptive Card

by HubSite 365 about Microsoft

Software Development Redmond, Washington

SPFx Adaptive Card Extension for SharePoint and Viva Connections with Power Automate and AI to auto update menus

Key insights

  • SPFx and Adaptive Card Extension (ACE): Summary of a July 24, 2025 demo that shows how an SPFx-powered ACE displays a weekly cafeteria menu in Viva Connections and SharePoint.
    Presenter Lakshmana Rao Duppala demonstrates a working solution bound to a SharePoint list.
  • Power Automate and trained document model: A scheduled flow extracts items and prices from a PDF menu using a trained model, then automatically updates the SharePoint list.
    This automates menu updates and reduces manual data entry.
  • SharePoint list binding and JSON UI rendering: The ACE reads the list and renders a dynamic JSON-based card with menu items, prices, and links for online ordering.
    The card updates in real time when the list changes.
  • QuickViews and interaction patterns: Use QuickViews to provide expanded details, daily specials, or ordering actions from the main card.
    These views give richer content without leaving Viva Connections.
  • Development workflow: Scaffold an ACE with the Yeoman SharePoint Generator, implement card JSON and data binding, test with the SharePoint workbench, then deploy the package to the tenant app catalog.
    Follow iterative testing with gulp serve before tenant release.
  • Best practices and benefits: Prefer SPFx v1.18+ for compatibility, use declarative Adaptive Card templates for consistent cross-platform UI, and design for extensibility and accessibility.
    This approach yields a maintainable, responsive cafeteria menu across devices.

Introduction

The Microsoft editorial team reports on a recent YouTube demo that walks through building an Adaptive Card Extension for a cafeteria menu. Equally important, the video was presented during the SharePoint Framework community call on 24 July 2025 and demonstrated a practical integration of modern Microsoft 365 tools. The demo presenter showed how a menu in PDF form is converted into live data and surfaced in Viva Connections and SharePoint. Consequently, the story highlights both the developer steps and the operational patterns behind such solutions.

In this article, Microsoft summarizes the video and explains the key techniques, tradeoffs, and challenges developers should expect. Moreover, the coverage focuses on clear, actionable details so technical teams can evaluate the approach. The intent is objective reporting rather than step-by-step instruction, while still showing the main architecture and decisions. Therefore, readers gain a concise understanding of the project and its implications for internal apps.

Demo Overview and Goals

The demo showcased an SPFx-powered Adaptive Card Extension that displays a weekly cafeteria menu on Viva Connections and SharePoint. Specifically, the solution binds UI content to a SharePoint list and renders a dynamic JSON-based card for end users. A scheduled Power Automate flow extracts menu items and prices from a PDF using a trained document model, and then updates the list automatically. As a result, the card stays current and offers links for online ordering when available.

The presenter emphasized practical goals: reduce manual updates, provide a consistent user experience across devices, and integrate with existing Microsoft 365 services. In addition, the demo used a declarative JSON template to control the UI, which simplifies front-end changes. The card included QuickViews for additional details and ordering links for convenience. Thus, the solution aims to balance automation with a familiar navigation model for employees.

Technical Workflow and Components

The solution combines several Microsoft technologies in a small pipeline: a trained document model for PDF extraction, a scheduled Power Automate flow for processing, a SharePoint list as the authoritative store, and an SPFx Adaptive Card Extension for presentation. First, the document model reads items and prices from the menu PDF and returns structured data. Then, automation updates the SharePoint list and an ACE consumes that list to render a JSON UI.

Furthermore, developers scaffold the extension with the Yeoman generator and choose a suitable template for the card layout. The card JSON supports links, basic visuals, and QuickViews for details, while the ACE runtime handles rendering consistently across Viva Connections clients. Testing typically uses local workbench and tenant app catalogs for deployment. Therefore, the architecture remains largely client-side with server-side automation for data extraction and synchronization.

The architecture trades simplicity for some operational complexity, since automated extraction introduces a processing layer that must be monitored. In other words, automation reduces manual effort but requires accurate models and error handling. Developers must therefore design retry logic, validation steps, and alerts for failed extractions. Consequently, the pipeline must include monitoring and fallback paths to maintain data quality.

Benefits and Tradeoffs

The chief benefit is an up-to-date, cross-platform menu delivered in a native experience through Viva Connections and SharePoint. Additionally, declarative cards reduce front-end code and make UI changes faster, while the SharePoint list enables easy editing and permissions control. However, the tradeoff includes maintaining the extraction model and the automation flow, which adds operational overhead that teams must manage.

Another tradeoff concerns performance and freshness: frequent extraction keeps data current but consumes compute and could incur costs or throttling. Conversely, infrequent updates reduce load but risk presenting stale menus to users. Moreover, richer card designs with images or charts improve engagement but can increase payload size and rendering time on low-bandwidth devices. Thus, teams must balance richness against responsiveness and cost.

Security and governance present further tradeoffs, since automated access to PDFs and lists must respect tenant policies and data privacy. For instance, using trained models that process sensitive content requires controls and proper access scopes. Consequently, design decisions should include least-privilege permissions and review by compliance teams.

Challenges and Best Practices

A key challenge is ensuring accurate data extraction from PDFs that vary in layout and quality. While trained document models perform well on predictable formats, they still need validation steps for edge cases. Therefore, implement post-extraction checks and manual review workflows for new menu types or unusual PDFs.

Deployment and versioning can also be tricky when working with SPFx and tenant app catalogs, especially in large organizations. In practice, use staged rollouts, clear versioning, and proper packaging to avoid disruption. Additionally, adopt automated tests for the ACE UI and monitor telemetry to catch rendering issues quickly. These steps improve reliability and reduce surprises in production.

Conclusion

The video demo offers a practical pattern for combining SPFx, Adaptive Card Extensions, Power Automate, and SharePoint lists to deliver a cafeteria menu in Viva Connections. While the approach streamlines content updates and gives a consistent user experience, it requires investments in model accuracy, monitoring, and governance. Overall, organizations can adopt this pattern to improve staff services, provided they evaluate the tradeoffs and put supporting processes in place.

Microsoft 365 reports this as a useful community demonstration that highlights both the strengths and the operational realities of modern Microsoft 365 integrations. Accordingly, teams should pilot the pattern, measure costs and accuracy, and iterate on design choices to meet their specific needs. In this way, the ACE-based menu solution can become a stable, user-friendly feature in a corporate intranet.

SharePoint Online - SPFx: Build a Cafeteria Adaptive Card

Keywords

SPFx Adaptive Card Extension, SharePoint Framework Adaptive Card, Adaptive Card Extension tutorial, SPFx cafeteria menu, build Adaptive Card Extension SharePoint, SPFx food menu app, Adaptive Cards for SharePoint, SPFx ACE example