A reusable Power Platform snippet

Notifications Card

This snippet shows how to implement a notifications card in Power Apps.

Power Apps
Preview PNG
Last updated
Jul 31, 2024
Category
Community snippet

From idea to implementation

Make it your own.

Check this snippet's prerequisites, permissions, and licensing before using it. The documentation below comes directly from the snippet README.

This snippet shows how to implement a notifications card in Power Apps.

A basic example

Minimal path to awesome

NOTE: The recommended best practice is to utilize this YAML snippet inside of a canvas component for reusability

  1. Open your canvas app in Power Apps
  2. Copy the contents of the YAML-file
  3. Right click on the screen where you want to add the snippet and select "Paste YAML" View of the paste code button
  4. Replace Items Property in the gallery with your data. If the field names change you'll also need to update the text property of the two text labels and the Icon property of the icon. Pasted Code

Steps to use as a component

  1. Open your Power App in edit mode

  2. Select the components tab in the tree view components tab

  3. Select New component

  4. Rename your component to something relevant like NotificationCard

  5. In the Custom Properties panel, select New custom property

  6. For Display name input the text Items

  7. Change the Data type to Table componentconfig

  8. Select Create

  9. Right click in the component and select Paste Code paste code

  10. Select the galNotifications gallery and copy the code from the Items property

  11. Select the container object and go to the Items property you just created and paste the code you copied component items property

  12. Select the galNotifications gallery and go to the Items property and replace the code with the {INSERT-NAME-OF-YOUR-COMPONENT}.Items gallery items

Learn more about YAML and integrating with Components

Watch the video