Step 3: Display an alert
Once you've created an alert, you'll next want to explore the options to display it.
There are 3 options to choose from when displaying an alert:
1. In a web part
- If you are not already in edit mode on your page, select Edit on the top right of the page.
- Add the Alerts web part to your page.
- Click on the Configure button on the web part. The web part properties pane will appear.
- Connect to the data source site you created in the Alerts Directory web part.
- An optional setting in the web part properties pane allows you to hide the web part if there are no alerts to display. Enable or disable this option based on your preference.
- Publish the page for users to view your alert.
2. In the Viva Connections Dashboard
Note: this option requires you to have set up the dashboard experience for Microsoft Viva Connections. Further details can be found here.
- Navigate to your Viva Connections Dashboard page and select Edit on the top right of the page.
- Add the Alerts card to your page.
- Select the Edit card button located on the card toolbar to open the properties pane.
- In the properties pane, you can:
- Choose from the medium and large card size
- Enter a title for the card
- Connect to the data source site you created in the Alerts Directory web part.
- Select the audiences to target your card to.
Note: this audience targeting applies to the card. If you wish to audience target specific alerts, this should be done in the Alerts Directory web part.
- Publish the dashboard page for users to view your alert via the Dashboard for Viva Connections web part.
3. Across your site
Note: only a user with the SharePoint Administrator role can set up this type of alert due to properties that need to be set in SharePoint.
- Click the Settings icon on the SharePoint suite bar and navigate to Site contents.
- In Site contents, a configuration panel for the Alerts extension will appear at the foot of the page. Click on Configure button
- A property pane will appear, allowing you to connect the Alerts extension to your Alerts Directory to display alerts across SharePoint sites.
You will need to insert a JSON string in the pre-defined format below, replacing the bold items with the SharePoint domain and the site where your Alerts source is located.
JSON format
{
"default":{
"sourceSiteUrl":"https://yourdomain.sharepoint.com/sites/yoursite"
},
"overrides":[
{
"sites":[]
}
]
} - Your JSON will be validated to ensure it is correctly formatted. Click on the Save button to apply the SharePoint properties for Alerts.
⬅️ Back - Step 2: Create an alert
Advanced configuration
For editors seeking to display different alerts on their sites, check out our guide on How to set up multiple alerts in your tenant.