--- title: Priority 1 incidents example description: This example scrolling element demonstrates how to create a UI macro to a scrolling list of priority 1 incidents. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/api-reference/web-services/r\_Priority1IncidentsExample.html release: australia product: Web Services classification: web-services topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Add scrolling form elements, Scrollable areas, Feed reader, RSS web service, Inbound, Web services, API implementation, API implementation and reference] --- # Priority 1 incidents example This example scrolling element demonstrates how to create a UI macro to a scrolling list of priority 1 incidents. Use the following example code: ``` var inc = new GlideRecord('incident'); inc.addActiveQuery(); inc.addQuery('priority',1); inc.query();
Priority 1 Incidents:
$[inc.number] $[inc.short_description]
View all active incidents
``` Navigate to **System UI** > **Formatters** and create a Formatter that refers to the UI Macro above. **Parent Topic:**[Add scrolling elements in forms](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/web-services/t_AddingScrollingElementsInForms.md)