PnP Power Platform Samples

repository·main·Indexed 19 days ago

https://github.com/pnp/powerplatform-samples

A centralized collection of community-driven samples for the Microsoft Power Platform. The repository includes implementation guides and source code for various patterns, such as the AI-Driven Expense Report Processing solution, AI Daily Time Management Plan, Advanced Validations UDF component library, Accessibility color contrast checker, and the A Puzzle a Day game. Samples demonstrate the use of Power Fx, Power Apps CLI (pac), AI Builder Prompts, Power Automate, and Dataverse.

Tokens
52.3K
Snippets
121
Records
290
Agent score
65%

What's inside pnp-powerplatform-samples

  1. Overview of Create Notes From Canvas features

    main

    This Canvas App sample demonstrates how to handle attachments for the standard OOB Account table using a custom UI workaround.

    Key Capabilities:

    • Attachment Management: Users can add, remove, and undo attachments within the app.
    • Data Capture: The app captures the binary data of attached images for storage.
    • Document Support: Supports various document types beyond just images.
    • UI/UX: Features a visually appealing phone layout designed for streamlined messaging and real-time collaboration.
  2. Overview of the Power Apps License Calculator

    main

    The Power Apps License Calculator is a component designed to be embedded in Canvas Apps or Apps for Teams. It provides stakeholders with estimates of total licensing costs and recommendations for the most cost-effective license types (e.g., Power Apps Premium vs. Per App vs. Pay-as-you-go).

    Key Features:

    • Price Matrix: Displays a matrix of license prices based on the number of users and applications.
    • Licensing Type Mode: Allows users to switch views to see specific licensing types.
    • Active User Impact: Shows how the number of active monthly users affects the final cost.
    • Configurability: Supports custom pricing and currency settings.
  3. Overview of the Power Apps Weekly Timesheet Template

    main

    This sample provides a canvas app implementation for a weekly timesheet system. It is designed to work with SharePoint as a backend, meaning no premium Power Apps licenses are required.

    Key Capabilities

    • Weekly Submission: Submit time cards using a weekly view interface.
    • Employee View: View all submitted time cards and track their current status.
    • Manager View: Review team members' time cards and perform approvals.

    Technical Details

    • App Type: Power Apps (Canvas App)
    • Backend: SharePoint
    • Features Used: Modern controls, named formulas, and containers.
    • License Requirement: No Premium license required.
  4. Overview of Healthcare AI Chatbot features

    main

    The Healthcare AI Chatbot is a Power Virtual Agents (PVA) solution designed to diagnose symptoms and suggest doctors. It utilizes several Power Platform capabilities:

    • Symptom Diagnosis: Uses PVA generative answers within a topic to diagnose users based on inputted symptoms.
    • Appointment Scheduling: Displays an adaptive card to collect a specific date and time from the user.
    • AI-Driven Doctor Matching: A Power Automate flow analyzes symptoms for keywords/phrases to determine the best doctor specialization and checks doctor availability based on the user's selected date and time.
    • Direct Consultation: An alternate topic allows users to set up a consultation with a specific doctor by providing the doctor's name and an appointment time.
    • Emergency Services: An alternate topic allows users to request an ambulance on demand.
  5. Overview of the Accessibility color contrast checker

    main

    The Accessibility color contrast checker is a Power Apps canvas app designed to help makers ensure their color choices comply with WCAG 2.1 success criteria for accessibility.

    Key Features:

    • Checks color contrast ratios against WCAG 2.1 standards.
    • Displays hex values of colors.
    • Supports inputting RGBA values via sliders or input fields.

    Compatibility & Requirements:

    • Product: Microsoft Power Apps (Canvas Apps).
    • License: No Premium Power Apps license required.
    • Features: Does not rely on experimental features, custom connectors, or on-premises connectors.
  6. Overview of the AI Daily Time Management Plan

    main

    The AI Daily Time Management Plan is a scheduled cloud flow that automates daily planning. It uses a custom AI Builder Prompt to process data from Outlook calendar events and Microsoft ToDo (Business) tasks for the current day. The AI generates a structured time allotment plan in HTML format, which is then sent via email.

    Key Capabilities:

    • Calling an AI Prompt within a Power Automate flow.
    • Passing dynamic inputs (calendar events and tasks) into an AI prompt.
    • Generating email-ready HTML content using AI.
  7. Overview of the Forem Sample

    main
    The Forem sample demonstrates how to use the Forem (Independent Publisher) connector within Power Apps. It specifically showcases how to display the latest posts, posts about Azure, and posts about .NET. This sample uses Dev.To as the Forem instance and relies on the Creator Kit for its UI components.
  8. Overview of SharePoint-Site-Assistant

    main

    The SharePoint-Site-Assistant is a solution designed to standardize and simplify the SharePoint site creation process. It provides a user-friendly Canvas App interface where users answer seven questions to trigger an automated Power Automate flow that constructs a new SharePoint site based on their specifications.

    Key Capabilities:

    • Customizable Site Creation: Users can select site language (e.g., English, Lithuanian) and choose from predefined design templates.
    • Real-time Validation: Uses Microsoft Graph API to validate site names against existing sites to prevent duplicates before submission.
    • Automated Provisioning: Automates site construction, external user invitations, and sends notification emails with the new site link.
    • User Analytics: Records user actions via Azure Application Insights to help analyze and improve the application experience.
    • Responsive Design: The Canvas App is built to work across different device types.
  9. Overview of the Power App template

    main

    This is a tablet-based canvas app template designed to accelerate development by providing reusable UI components.

    Key Features:

    • Reusable Header component
    • Reusable Footer component
    • Reusable Left Navigation component
    • Template-based structure for faster app building

    Compatibility & Licensing:

    • Platform: Power Apps (Canvas Apps)
    • License: No Premium license required
    • Features: Does not rely on experimental features
  10. Overview of VARify Bot

    main

    VARify Bot is a Copilot Studio agent designed to fetch football team information and results. It integrates with the third-party api-football.com API.

    Key capabilities include:

    • Answering queries about football teams and match results.
    • Allowing users to set a preferred favourite team.
    • Storing favourite team preferences in a Dataverse table linked to the user's account for persistent knowledge across interactions.
  11. Overview of the Prompt Management Solution

    main

    The Prompt Management Solution is a sample designed to help users organize prompts used for AI tools and Copilots. It is built on Dataverse and is responsive and accessible.

    Key Features:

    • Organization: Categorize prompts by type (e.g., Marketing, IT, Operations) and by the product they are intended for (e.g., Power Apps Copilot, Azure OpenAI, Dall-E, Midjourney).
    • Search & Filter: Find prompts quickly using category and product filters.
    • Quick Copy: Includes a built-in copy button to facilitate pasting prompts into external AI tools.
    • Bookmarking: Users can bookmark favorite prompts to curate a personalized list on their profile page.
    • Administration: An administration app allows for managing all prompts and modifying available categories and products.