# Enhanced Alerts

This script will populate a custom field on Organizations and Devices. It will show a prioritized list of alerts sorted by Severity, Priority then Created Date. It will also display a small graph detailing when the specific alert has been triggered on the device in the last 30 days.

It will also populate a view across organizations of Critical and Major severity items into the Global Overview company.

<figure><img src="/files/bzOlWHYG93V1StpVZrKO" alt=""><figcaption></figcaption></figure>

## **Requirements**

Make sure the [Getting Started](/ninjaone-auto-documentation/getting-started.md) guide has been followed

### **NinjaOne Products**

Core RMM

### **Recommended Schedule**

Once per hour

### **Role Setting Custom Fields**

None

### **Global Custom Fields**

<table data-full-width="true"><thead><tr><th>Display Name</th><th>Name</th><th>Type</th><th>Permissions</th><th>Scopes</th><th>Description</th></tr></thead><tbody><tr><td>Device Alert Summary</td><td>deviceAlertSummary</td><td>WYSIWYG</td><td><p>Technician: Read Only<br>Automations: None</p><p>API: Read/Write</p></td><td>Organization, Location, Device</td><td>Displays the Alert Summary</td></tr></tbody></table>

## The Script

{% @github-files/github-code-block url="<https://github.com/lwhitelock/NinjaOneAutomation/blob/main/DocumentationScripts/NinjaOne-Alert-Summary.ps1>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mspp.io/ninjaone-auto-documentation/enhanced-alerts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
