Declarative Actions in ServiceNow: The COMPLETE Guide

Declarative Actions (DA’s for short) have been around for quite a while now. Although trusty UI Actions are still going strong, and apply across all interfaces – including Next Experience-based ones, Declarative Actions are much more flexible, powerful, and can be used in many additional locations in Next Experience-based interfaces.

I’ve often found DA’s a little confusing. Part of this comes from that flexibility and power, but part also probably comes from the fact that they were originally created circa the Orlando release and originally designed for use with the legacy Agent Workspace. Since then though they have grown to primarily support and work with new Next Experience-based interfaces.

This article focuses exclusively on Declarative Actions as they work with new Next Experience-based interfaces; think anything created or editable in UI Builder – like CSM Configurable Workspace, or Service Operations Workspace.

There are a few tables and other aspects of DA’s that apply only to the legacy Agent Workspace. I have intentionally omitted these for simplicity as it is unlikely going forward you’ll need to do much with these.

With more-and-more Next Experience-based UI’s being released, I decided recently to deep-dive into DA’s to fully understand how they work, and to be able to share my learnings. Although there are a lot of guides out there, there was nothing totally comprehensive which entirely completed the puzzle for me. I hope this article will complete the puzzle for you.

Declarative Action Basics

What are declarative actions.

Think of Declarative Actions as an upgrade to UI Actions .

UI Actions have been around forever in ServiceNow and let users perform actions from lists and forms. Furthermore, they allow developers and admins to define new actions so they can tailor the way that out-of-box lists and forms work without editing their UI code.

Historically, ServiceNow was all about lists and forms in the Core UI. That meant users mainly interacted with lists of records – like a list of incidents. When the user clicked on a record in a list they were taken to a detailed form view of that record. UI Actions were designed for UI’s based around this paradigm. There was also the occasional “workbench” interface, however those were entirely bespoke and rigid and didn’t offer a standard way to add elements to the interface.

Admins could add UI Actions to the top or bottom of a form, and adjust how they’re presented to users – for example, as a link, or within a menu. They could also do the same at the top or bottom of a list, and have users take action on many records at a time.

hide assignment group in servicenow

But things are changing. There are many new Next Experience-based UIs like Workspaces, Playbooks, and Catalog Wizards. Plus, users can build their own custom Next Experience-based UIs. UI Actions don’t work well with these new types of UIs because they’re so heavily based around the concept of lists and forms.

That’s where Declarative Actions come in. They’re more flexible and work with any style of UI, whether it be a list, or a form, or a playbook, or a catalog wizard. They are the future of performing actions in ServiceNow.

It’s important to stress though that UI Actions still have their place. While you can do everything that UI Actions do with Declarative Actions in Next Experience-based UI’s, Declarative Actions don’t work in the Core UI.

This means for example if you want to create an “Assign to Me” button on the Incident incident table, if you did that with Declarative Actions that button would only appear when viewed through a Next Experience-based UI – it wouldn’t appear in the Core UI.

This might be fine – your users might solely be using the Next Experience-based UI, and will never use the Core UI. However if you want parity of functionality between the two interfaces, it’s still worth leveraging UI Actions, and they can work in harmony on lists and forms. Some Next Experience components like the Action Bar have functionality to display UI Actions alongside Declarative Actions.

What Types Are There?

While UI Actions only support lists and forms, DA’s are designed with much more flexibility and thus can support many places in the interface that one may want to add actions to.

As of writing the following DA types exist, which display in the areas of the interface as noted.

When developers at ServiceNow are building out-of-box components they can enable them to support DA’s. This means that as new components and interfaces are developed and released there is the possibility that even more types will become available.

In most cases there’s a 1-to-1 relationship between a component which supports DA’s, and a DA type. For example, List -type DA’s always appear in the List component. However there are other cases where a single component supports multiple different types of DA. For example the Playbook component can have Playbook , Playbook Stage and Playbook Card -type DA’s appear in it.

Each of these different types of a DA can be found in the Action Model Definitions sys_declarative_action_model_definition table.

hide assignment group in servicenow

What Can They Do?

Executing a DA is usually done by clicking on it – for example, clicking on a button. What path the execution of a DA follows when it is executed is referred to as how it is “implemented”.

There are three different ways a DA can be implemented in Next Experience-based interfaces:

  • Client Script – to execute a UI Action-style script on the client-side .
  • Server Script – to execute a UI Action-style script on the server-side .
  • UXF Client Action – to dispatch an action in a Next Experience-based UI for handling by an event handler in UI Builder.

There are other ways a DA can be implemented, however they are only relevant to the legacy Agent Workspace interface and so I’ve intentionally omitted them from this article

An example scenario of a DA implemented as a Client Script might be where you want some kind of browser action to be performed – like each of the items selected in a list to be opened in a new browser tab, a web request to be made to determine a value for a field, or some kind of interaction with the GlideForm or GlideList API’s.

An example scenario for a DA implemented as a Server Script on the other hand might be where you want to add an “Approve” button at the top of a form to update a related approval record. Because it’s a related record you’re updating, the GlideForm API won’t really be useful (as it only knows about the current record). This action requires some additional queries of the approval table, and that is usually best done on the server-side.

The Server Script and Client Script implementation types should be very familiar and easy to understand coming from the world of UI Actions. Similar to UI Actions, deciding whether to choose to implement your DA as a Server Script or a Client Script is really up to you and the considerations of your use case.

DA’s implemented as a UXF Client Action however are very different to the world of UI Actions. What can be done with these is very much down to the page that they are appearing on as they simply dispatch actions with a payload, and those actions need to be handled by the UI Builder page itself.

For example, a record page might have an event handler on it to support opening a record’s form in a sub-tab, or in a modal dialog. An extreme example might be a podcast player page that has an event listener to allow a specified audio file to be started playing from a certain point. It’s really up to what the page and it’s event handlers allow to be done – and don’t worry, I’ll be covering event handlers later in this article.

It’s worth noting that although the execution of a Client Script and UXF Client Action starts on the client-side, that doesn’t mean they can’t trigger something to happen on the server-side as well. This could be done in a Client Script through a GlideAJAX request, or in a UXF Client Action through the event hander triggering the execution or refresh of a data resource.

Who Creates Them?

There are three different personas that have a role in the creation of Declarative Actions and determining what they have the capacity to do.

Component Author

Developers at ServiceNow create the components that DA’s can be presented inside. They also determine what type of DA’s will show up in their components (creating new Action Model Definitions if necessary), and what contextual data can be passed along from the component to the DA. Let’s call this persona the Component Author .

Page Author

Whether they be the developers of ServiceNow, or partners, or customers, the Page Author persona creates pages in UI Builder that leverage DA-enabled components. For example, a Page Author might create a record page that has the Action Bar component on it, which hosts Form -type DA’s.

The Page Author will also build into their pages capabilities that they want to allow be triggered by DA’s implemented as UXF Client Actions . For example, they can ensure an event handler is setup on their page so that DA’s can trigger a modal to open, or for a specific tab in the sidebar to be selected, or a specified audio file to start playing.

For those capabilities they build into the page they also know exactly what data is required by them. In the case of the modal, perhaps they built some kind of behaviour to automatically close the modal after a set number of seconds and they want to allow DA’s to specify that timeout value. The Page Author can create payload records to do this, which will help Declarative Action Authors by giving them a template to start from when defining the data that will be provided by their Declarative Action – and don’t worry, I’ll be covering payloads later in this article.

Declarative Action Author

As with UI Actions, the whole point of Declarative Actions is to allow additional functionality to be added by developers and admins without requiring they edit the code of the UI itself. This means developers and admins shouldn’t need to make changes to a page to be able to add actions to it. Making changes to a page not only requires edit access (which even admins may not have the rights to) but also makes upgrades harder, and so this architecture principle of Declarative Actions is a good one.

When developers and admins are defining DA’s and placing them on specific parts of the UI, they are taking on the role of the Declarative Action Author .

The Page Author and the Declarative Action Author may in some cases actually be the same person. For example, what’s the point of a Page Author creating a record page with no actions able to be performed on it out-of-box? They will likely of course want to create some DA’s that come out-of-box with their page (such as a “Save” button). In this case they will be performing the role of both the Page Author and the Declarative Action Author .

However, later on another developer or admin can come along and take on just the role of Declarative Action Author by adding their own Declarative Actions to that page – without requiring the page to be edited and therefore not requiring taking on the role of a Page Author as well.

For DA’s implemented as a UXF Client Script , what the Declarative Action Author can do is limited by what the Page Author has already done on the page. For example, the Declarative Action Author cannot create a DA which performs an action if the Page Author hasn’t created a page which allows for that action to happen.

Giving Declarative Actions Context

A Declarative Action being provided with context is critical to ensure that it can perform useful operations. For example, in the earlier scenario of an “Open in new tab” button at the top of a list, what use would it be if it didn’t know which of the items in the list were selected?

In the case of a DA implemented as a Server Script or Client Script , this context is provided to those scripts in the same ways that UI Actions are – via the current object (and in some situations the parent object) in the case of a Server Script , or the GlideForm and GlideList API’s in the case of a Client Script .

However on the client-side, DA’s have a lot of additional functionality when it comes to context. This makes sense because the GlideList and GlideForm API’s are predictably very list and form based API’s, and additional context is needed with the expanded types such as Playbook Card or EVAM that DA’s offer.

Each DA type has different contextual data that can be provided to it on the client-side. It makes sense that a List -type DA would be provided with context about what records in the list are selected, but it doesn’t make sense that a Form -type DA would be given that same context.

Some other examples of useful context:

  • A Field -type DA appears as a button next to a field. The name of the field, its current value, and the table and sys ID of the record that the user is viewing that field on would all be useful contextual data to have.
  • A Playbook Card -type DA can appear as a button at the bottom of a card that represents an activity in a process. The name of the activity, the associated record’s table and sys ID, and the status of the activity would all be useful contextual data to have.

Definitions of this contextual data are stored in the Action Model Fields sys_declarative_action_model_field table, which is directly related to the previously mentioned Action Model Definitions table that stores the core DA types.

hide assignment group in servicenow

The Action Model Fields table is also shown as a related list on the Action Model Definition form, allowing you to see exactly what contextual data is available to each DA type.

hide assignment group in servicenow

It’s important to understand that this additional contextual data is not available to the “script” fields of DA’s implemented as a Client Script or Server Script . These both operate in the same way as UI Actions, with context supplied through current  (and in some situations parent ) on the server-side, and GlideList and GlideForm API’s on the client-side.

However the additional contextual data is available to the Client Conditions and Scripted Client Conditions fields of all DA’s regardless of how they are implemented, so it certainly can have some use for all implementation types. It’s primarily useful for DA’s implemented as a UXF Client Action though as you will see later on in this article.

Pre-Prepared Payloads

As mentioned earlier, a task that the Page Author needs to do when creating a page in UI Builder is to hook up event handlers to determine what capabilities the page has that Declarative Action Authors can leverage for their DA’s which are implemented as a UXF Client Action . I’ll cover later in this article how this is done, however what these actions are is of course not static across all pages but is instead determined by the page itself and what its purpose is.

Some examples might be that a record page requires the ability to open another record in a sub-tab, or open a modal, and for an extreme example a podcast player page would need the ability to start an audio file playing.

Each of these different actions that can be performed on the page requires different data to be sent to it. Navigating to another record would require the table name and the sys ID of the record to navigate to. For an action that plays an audio file, you’d probably need to supply the URL of the audio file, and perhaps a timecode for where in the audio file to start playing from.

Because these actions on a page are defined and controlled by the Page Author , that persona is also best placed to create Action Payload Definitions sys_declarative_action_payload_definition . These are essentially pre-prepared templates of the data that’s expected to be sent to the event handler on the UI Builder page. It’s in this table that you define the models that the payload supports, as well as a template of the payload in JSON object format.

For example, in the scenario where a Page Author is creating a podcast player page, the action which plays the audio file might have in the payload field of its Action Payload Definition the following:

The purpose of each of the properties here should be self-explanatory based on their name, however their values are worth noting.

  • The audioFileUrl property has an empty value, meaning that unless the Declarative Action Author overrides it when they use this payload, this property on the payload will be an empty string.
  • The startAtTime has a value of 00:00:00 . This will be the default value, but again the Declarative Action Author can override it if they want to.
  • The episodeId property has a value of {{sysId}} . Being in double-curly braces makes this a placeholder for contextual data from the DA type. For example, a Form -type DA has an Action Model Field with the name sysId , so if this payload were used in a DA in the Action Bar this placeholder would be replaced by the sys ID of the record being viewed. Again, this will just be the default value and it can be overridden by the Declarative Action Author if they want.

You will notice various Action Model Field records of type “Data Object” and “JSON”. An example of these is variables on the Catalog Wizard type, and currentUser on the Form type. These you are able to dot-walk with, so for example if you had a variable called ordered_by appearing in the catalog wizard, you could access it by using the {{variables.ordered_by}} placeholder.

Upon creating an Action Payload Definition record, the different properties of the JSON in the payload field will be automatically extracted and for each of them a record in the Action Payload Fields sys_declarative_action_payload_field table will be created.

hide assignment group in servicenow

This table can mostly be ignored as it is used simply to power interfaces you’ll see later on to override the template values within the JSON template when a Declarative Action Author is actually creating a DA.

For each model the payload supports, a record in the Action Payload Mapping sys_declarative_action_payload_mapping table will also be created.

hide assignment group in servicenow

Again, this table can be ignored as it doesn’t seem to serve any purpose other than perhaps assisting with the back-end functioning of the DA configuration and runtime behaviour of which Page Authors and Declarative Action Authors do not need to be concerned with.

hide assignment group in servicenow

Creating & Assigning Declarative Actions

The core table at the heart of the Declarative Actions concept is the Action Assignment sys_declarative_action_assignment table. This is the place that Declarative Action Authors will create actual DA’s and set their core attributes such as:

  • The model of the DA – i.e. the type of their DA e.g Form , Field , Playbook Card etc.
  • The label – i.e. what text appears on the button.
  • The conditions for it appearing – what types of records should it appear on, for which roles.
  • How it is implemented – i.e. Client Script , Server Script , or UXF Client Action .

The table name Action Assignment being the place to create DA’s may be a little confusing, especially since there’s an Action Definitions sys_declarative_action_definition table and the term “definitions” is used elsewhere in the DA data model to be the place where you create/define things.

However, this Action Definitions table is only relevant to how DA’s appear in the legacy Agent Workspace and is not involved in any way for Next Experience-based interfaces so it is safe to ignore it and consider the Action Assignment table as being the core table for creating/defining DA’s.

For Vancouver-and-earlier releases of ServiceNow it’s important to never visit the Action Assignment table directly when creating new DA’s. This is because the Model field on the Action Assignment form (where the type of DA is set) is hidden by default and set automatically depending on the module and list you navigated to the form through.

When creating a DA you should thus navigate to the table via the relevant module in the Application Navigator for that type and then press the New button on that list. These are as follows:

Depending on the type of DA and how it is implemented, there will be various additional things to configure via this record. For example, for Field -type DA’s, what types of fields or specific fields should it appear on and what icon should appear on the button? For DA’s implemented as a UXF Client Action , what is the Action Payload Definition that should be dispatched when the button is pressed?

Furthermore, in addition to the configuration options directly on the Action Assignment record there are also a number of related tables that that control how and under what scenarios a DA of certain types appear & behave.

These supplementary tables only really need to be worried about if you are dealing with a DA of the relevant types listed in the table above. Each of them have their own use case related configuration, for example for the UX Form Layout-related tables these allow UI Actions and Declarative Actions to be positioned alongside each other, and control the visibility of these items for different users and groups.

hide assignment group in servicenow

Handling the Action

Now that we’ve covered what needs to be done to get a Declarative Action to display, the equally important task of course is setting what happens when the Declarative Action is triggered. As previously mentioned, the “Implemented as” field of the Action Assignment record will determine this, but let’s go into detail on how the different implementation methods work in further detail.

Client Script & Server Script

Selecting that a DA is implemented as a Client Script or Server Script will reveal the relevant script field on the form. The scripting environment here is almost exactly like the relevant UI Action type, with context supplied through current  (and in some situations parent ) on the server-side, and GlideList and GlideForm API’s on the client-side.

hide assignment group in servicenow

This is quite a simple concept, as triggering the Declarative Action just runs a script, and that script operates in a way that anyone used to server-side and client-side UI Actions should be familiar with.

UXF Client Action

A much more new concept though is the way that a DA that’s implemented as a UXF Client Action works.

The Action Payload Definition selected on the Action Assignment record via its Specify client action field will generate the structure of the JSON payload of the action. Let’s reuse the example from before of the action that plays an audio file:

The default values of that payload will be used, and any placeholders will be replaced with the contextual data of the Action Model Field with that name for the relevant Action Model Definition .

For example, if we used that Action Payload Definition for a DA appearing in an Action Bar component, it might end up like this:

Notice that the {{sysId}} placeholder has been replaced by the actual sys ID of the record.

With the payload generated, it can be overridden on a per- Action Assignment basis using the Payload Map field on the Action Assignment record.

For example, we could select audioFileUrl from the dropdown, and set its value to be the URL of an MP3 file, and do the same for startAtTime and set its value to be 00:01:00 .

hide assignment group in servicenow

Doing so would give us a payload like this:

Notice that the episodeId property is still on the JSON. This is because the Payload Map field is overriding the values, rather than creating a whole new payload.

We also have still have access to the values from the Action Model Fields in the Payload Map here too, and we can use the same double-curly bracket notation to refer to these fields, for example: {{isNewRecord}} . Helpfully, the Action Model Fields available for that particular DA type will be shown in a related list at the bottom of the form, allowing easy reference to the contextual data available when using double-curly brackets.

hide assignment group in servicenow

To illustrate how this payload is built you can refer to the following diagram:

hide assignment group in servicenow

Add-on Event Mappings

So where does the payload actually go? How does it influence and cause something to actually happen on a Next Experience-based interface like a specific modal dialog appearing, or a specific audio file to start playing at a specific point. That’s where the UX Add-on Event Mapping sys_ux_addon_event_mapping table comes in.

UX Add-on Event Mapping records are for a Declarative Action Author to explicitly say that for a certain instance of a component on a specific variant of a page, which of the handled events on a that page should be dispatched when a specific Declarative Action is triggered.

There are 5 fields on this table that are crucial for these records:

  • Source Declarative Action – the Declarative Action being being triggered (i.e. the Action Assignment ).

hide assignment group in servicenow

  • Target Payload Mapping – instructions for how the payload of the Declarative Action is mapped onto the properties of the handled event on the page. For example, the payload’s episodeId property might be mapped onto the idOfEpisodeToPlay property of the handled event being targeted.

hide assignment group in servicenow

While the first 4 fields are pretty easy to understand, the Target Payload Mapping field looks a little scary, right? Thankfully, in UI Builder there’s a UI that assists with creating and modifying UX Add-on Event Mapping records.

If you open the page that you want to hook your Declarative Action up to you can select from the content panel the e.g. a List component, and then in the configuration panel on the Config tab, at the bottom you’ll see a link labelled Configure declarative action mappings .

hide assignment group in servicenow

When you click it, a modal dialog will appear allowing you to create and edit UX Add-on Event Mapping records.

hide assignment group in servicenow

Because you’re on a specific page, and you clicked a specific component on it, that informs the values of the Parent Macroponent and Source element ID fields. The panel on the left lets you see which Declarative Actions could be dispatched by this component, and allows you to choose the relevant one to be the Source Declarative Action .

The dropdown in the middle allows you to select which handled event of the page is the Target event , and finally the fields below that allow you to use a regular UI Builder binding scheme to easily create the JSON that will be put into the Target Payload Mapping field. For example, to map a payload’s episodeId property onto an idOfEpisodeToPlay property of a target handled event, you would see a field here called something like “ID of Episode to Play” (or whatever the label of the idOfEpisodeToPlay property is) and you would set that to @payload.episodeId – @payload in this case is referring to the payload of the Declarative Action.

Handled Events

While the Declarative Action Author is creating Declarative Actions and mapping those actions to handled events on the page, the Page Author is responsible for the page itself, what events it handles, and what happens when those handled events occur.

UX Add-on Event Mapping records can only be associated with events that are listed in the Handled Events field of the macroponent of the page variant. This can be viewed from the UX Macroponent Definition record itself:

hide assignment group in servicenow

Handled events are UX Event sys_ux_event records and can be created directly in that table themselves, then manually associated with the page via this Handled Events field.

Handled events can also be viewed directly in UI Builder by selecting Body from the content panel , and in the Events tab of the configuration panel scrolling to the bottom to see the Handled events section:

hide assignment group in servicenow

From the Handled events section you can edit existing handled events, or define new handled events.

hide assignment group in servicenow

The above creates and/or associates a handled event with the page, and once that’s done the Page Author can specify what happens when those handled events occur.

Scrolling to the top of the Events tab of the configuration panel , with the handled event now associated with the page we will be able to create event mappings for it. If we click the + Add event mapping button the handled event will appear in the dropdown list.

hide assignment group in servicenow

Clicking it will make that event appear in its own section, and we can click the Add event handler link to open up the event mapping dialog to do things like link to a particular destination, open a modal, perform operations on a data resource, or anything else that can be done in UI Builder via events.

hide assignment group in servicenow

To illustrate the way this is set up, please refer to the following diagram:

hide assignment group in servicenow

As mentioned in the section about personas, a Page Author is likely to be creating these event mappings on the page first – e.g. open a modal dialog, or start playing an audio file. Then at a later date a Declarative Action Author will come along and create their Declarative Actions, and map them to the handled events of the page.

Declarative Action Cheatsheet

Instead of having to read this article every time you want a refresher on Declarative Actions in ServiceNow, I created this handy single page cheatsheet to describe what the purpose of each table is, its relationship to other tables, and the general persona responsibilities for the tables. It also covers some tips on event dispatch and handling, and the configuration interfaces available in UI Builder.

hide assignment group in servicenow

Sample Application

I’ve published a sample application to Github to show examples of what these various Declarative Actions look like when setup. You can find it on Github at dylanlindgren/declarative-actions-demo . If you fork the repo into your own Github account you will be able to import the fork of the repo into your instance using ServiceNow Studio .

I hope this article has helped you to understand Declarative Actions in ServiceNow.

Please leave a comment below if you have any feedback on this article, and follow me on X at x.com/dylanlindgren to keep in touch!

company logo

  • Release notes
  • Unification
  • System & Network Scanning
  • Web Application Scanning
  • API Scanning
  • Phishing & Awareness Training
  • Cloud Scanning
  • Scanner Appliance
  • Device Agent
  • Asset Manager
  • Remediation
  • Continuous Monitoring
  • Vulnerability manager
  • On-prem deployment
  • Vulnerability tests
  • Email notifications
  • Security Center
  • Contact and opening hours
  • Security Tools
  • Data retention
  • Security Badge
  • Holm Security VMP
  • Troubleshooting
  • Policy scanning
  • Best practice
  • Scanning techniques
  • Scan profiles
  • Authenticated Network Scanning
  • Scan Issues
  • Optimization
  • Authenticated scanning
  • Get started
  • Microsoft Azure
  • Amazon Web services (AWS)
  • Google Cloud Platform (GCP)
  • Oracle Cloud
  • Whitelisting
  • Data privacy
  • Getting started
  • Ignore and disable
  • Notes and conversations
  • Unified Vulnerabilities
  • Comparison report
  • White-labeling
  • Monitoring profiles
  • Beyond Trust
  • Integrations
  • Authentication & security
  • Personal data
  • Sweden, Norway, Finland, India & SAARC (Swedish entity)
  • Netherlands & Belgium (Dutch entity)
  • Denmark (Danish entity)
  • United Kingdom (UK entity)
  • Malaysia & SEA (Hong Kong entity)
  • Knowledge Base

How do I find Assignment Group id and User id in ServiceNow?

A unique 32-character GUID identifies each record in ServiceNow (Globally Unique ID) called a sys_id.

sys_id of a record is important when writing a script, workflow, or other development tasks.

Here are ten different methods to find the sys_id of a record in ServiceNow:

Right-click or hamburger You can right-click the header bar of most forms and find the sys_id.

To get a sys_id from the header bar:

Navigate to the record where you are looking for a sys_id. 

hide assignment group in servicenow

To get a sys_id from XML

  • Navigate to the record where you are looking for a sys_id

Right click the header bar and select Show XML. Alternately you can also click the Hamburger > Show XML

hide assignment group in servicenow

Since the sys_id of a record is always part of the URL for a link to that record, it is possible to retrieve the sys_id by viewing the URL.

To get the sys_id from XML

Right-click the header bar and select Copy URL. Alternately you can also click the Hamburger > Copy URL

For example, an Incident with the following URL:

https://<instance name>.service-now.com/nav_to.do?uri=incident.do sys_id=23dc968f0a0a3c1900534f399927740e

The sys_id is : 23dc968f0a0a3c1900534f399927740e

  • Add an onload client script to show a sys_id function onLoad() { var incSysid = g_form.getUniqueValue(); alert(incSysid); }

The sys_id value of a record can be found in a business rule (or any other server-side JavaScript)

The sys_id value of a record can be found in a background script. Note: Test in a development instance first!

Login as an admin

Go to System Definition > Scripts - Background

Paste a script similar to this and click Run Script

hide assignment group in servicenow

By adjusting the url of a record, you can add this URL Parameter to export the sys_id and all fields to CSV

Navigate to the list of records where you want to find the sys_id

Build your filter

Right-click the Filter, and select Copy URL

Paste the URL into a new browser window

Add &CSV&sysparm_default_export_fields=all to the end of the URL

A CSV file with all fields AND the sys_id is exported.

hide assignment group in servicenow

Here is a creative way to use the Easy Import Template to export the sys_id data you are looking for.

Right click the header bar and select Import. Alternately you can also click the Hamburger > Import

Do you want to insert or update data? Update

Do you want to create an Excel template to enter data ? True

Include all fields in the template? True or False, your choice

Click Create Excel Template

Click Download

Open the Excel Spreadsheet

Select Page 1

hide assignment group in servicenow

If you are using the  ServiceNow ODBC Driver  and a reporting tool, you can pull the sys_id field information easily.

hide assignment group in servicenow

If you are using the  ServiceNow Rest API , you can also pull sys_ids

hide assignment group in servicenow

Check this link (external): https://www.servicenowelite.com/blog/2020/9/29/ten-methods-to-find-sysid?rq=sys_ID

Broadway writer brings new comedy to PlayMakers

Fresh off the debut of her musical adaptation of “The Notebook,” Bekah Brunstetter ’04 will debut “The Game” in Chapel Hill.

Woman in foreground looking into camera with a look of concern, while man behind her plays a video game.

When Bekah Brunstetter came home to Chapel Hill in late March, she made sure to visit all her old haunts. She chowed down a sausage, egg and cheese biscuit from Sunrise Kitchen, sipped coffee at Caffé Driade and, of course, attended rehearsals at PlayMakers Repertory Company.

The homecoming felt surreal – a genuine full-circle moment for the 2004 Carolina graduate.

The visit came on the heels of the longtime writer’s Broadway debut — a musical adaptation of Nicholas Sparks’ “The Notebook” that she worked on for seven years with composer Ingrid Michaelson.

Seeing her work hit Broadway on March 14 felt like sending a child off to school for the first time. But Brunstetter didn’t have long to soak in the adulation. Within days, she boarded a plane toward North Carolina to put the finishing touches on her next production.

That play, called “The Game,” will make its world premiere at PlayMakers on April 13 and run through April 28, giving Chapel Hill audiences the chance to see a playwright and screenwriter at the top of her craft. Even more, the play has given the Los Angeles-based Brunstetter the opportunity to come home.

“The timing is just truly incredible,” she said. “I wrote my first play when I was 18 years old at UNC-Chapel Hill in the drama building. To go straight from my first Broadway show, after writing plays for 20-something years, to UNC where it all began is just really moving.”

Much like “The Notebook” creative process, crafting “The Game” has been a multi-year effort, dating back to the early days of the pandemic. It started with a call from PlayMakers producing artistic director Vivienne Benesch, who gauged Brunstetter’s interest in writing a modern adaptation of the first Greek comedy, “Lysistrata,” by Aristophanes.

“I love doing anything that brings me home,” Brunstetter said. “And I love an assignment.”

Originally performed in Ancient Greece in 411 B.C., the comedy centers on an Athenian woman named Lysistrata, who aims to end the Peloponnesian War by persuading women from warring territories to withhold sexual privileges from their soldier husbands.

Brunstetter brings the narrative into the 21st century by swapping the battlefield for video game controllers. In “The Game,” a group of women band together to pull their partners away from a highly addictive online game that is wreaking havoc on their relationships. The play focuses on the married couple Alyssa and Homer, played by actors Megan Ketch and Lucas Dixon, respectively.

Inspiration for the play wasn’t hard to find. Brunstetter’s husband is an avid gamer.

“Over time, I’ve had to really learn to drop my judgment of video games and understand in a deep way what they do for him,” Brunstetter said. “And I’ve had to understand the ways in which I rely on technology to survive and the ways in which technology gives me community.”

Though a comedy at heart, the play touches on universal themes like finding community, the importance of adult friendship and how empathy can help nurture romantic relationships. Brunstetter has proven adept at heartfelt storytelling throughout her career on stage and television, including multiple Emmy nominations for her work on the NBC show “This is Us.”

Now, fresh off her Broadway debut, Brunstetter will bring that storytelling home, and it couldn’t have come at a better time.

“Getting a Broadway show on its feet is exciting, but it’s also stressful and overwhelming,” Brunstetter said. “Coming home to North Carolina and sitting with this new play, driving around campus and looking at the old PlayMakers theater where my first play was produced, gives me a little bit of time for reflection and a moment to really just be grateful.”

U.S. News & World Report’s 2024 “Best Graduate Schools” list named multiple Carolina graduate degree programs in the top 10, including UNC Eshelman School of Pharmacy at No. 1.

Carolina blue background with yellow, blue and red logo reading

Arts Everywhere Day set for April 12

The eighth annual campus-wide event celebrates artists creating in all mediums.

Trees in background with old well in foreground, with text at top corner reading

Are you ready to run, hide and fight/defend?

Active Shooter and Critical Incident Response training customizes emergency preparedness to your workspace.

Fouad Abd-El-Khalick

Message about School of Education Dean Fouad Abd-El-Khalick

In a campus email, Provost J. Christopher Clemens announced that Abd-El-Khalick has been named provost and senior vice chancellor for academic affairs at the University of Massachusetts Amherst, effective July 1.

White text on black background reading

Carolina’s Pride Week begins April 8

Events include poetry performances, arts and crafts, a barbecue fundraiser, ultimate Frisbee and a pool party.

Boston Dynamics four legged robot walking around campus with onlookers of all ages surrounding it.

Here comes the UNC Science Expo…

And there goes the sun as Morehead Planetarium’s April 6-8 weekend celebration also features an eclipse watch party.

Landscape shot of Nepal during the day, overseeing buildings.

Tar Heel team begins preservation of ancient Nepal temple

Religious studies scholar and computer scientist want to create 3D model of 1,500-year-old Buddhist shrine.

hide assignment group in servicenow

Researcher uses data science to address homelessness

Data science and social work faculty member Hsun-Ta Hsu combines machine learning with data and community feedback.

Share on Mastodon

IMAGES

  1. ServiceNow

    hide assignment group in servicenow

  2. How to Find the Person Assigned to Your ServiceNow Ticket

    hide assignment group in servicenow

  3. How To Add Users To An Assignment Group In ServiceNow

    hide assignment group in servicenow

  4. How to hide a field/column in the list view?

    hide assignment group in servicenow

  5. How to Assign a User to a Group in ServiceNow

    hide assignment group in servicenow

  6. Task Assignment Rules in ServiceNow CSA Tutorial for Beginners

    hide assignment group in servicenow

VIDEO

  1. addOption and removeOption in Client Script

  2. ServiceNow ACL Table.* vs Table.none

  3. CUGC Connect (07-19-23): Citrix + ServiceNow: From Zero to Hero

  4. Adil Ahmed, Bristow Group

  5. Unlocking ServiceNow: Dynamic Group Value Setting without Sys ID

  6. SERVICENOW Assignment Data Lookup Rules and Transfer maps @SERVICENOW_Beginners

COMMENTS

  1. Hide the inactive group from the assignment group list on ...

    How to hide the inactive group from the assignment group list on the incident form Resolution Assignment group needs to be filtered based on active values. Following are the steps to achieve this: 1. Go

  2. Limit Visibility based on Group(s) : r/servicenow

    This code allows for any member of the assigned to group to view unassigned tickets, AND allows managers for the table to see all records assigned to their group. We created a specific group for "table managers" where we assigned the special role for this to work. The read ACLs for INC have a couple of special things they look for, like if you ...

  3. How to restrict a specific group incidents to only its ...

    Loading... Loading...

  4. ServiceNow Advanced Reference Qualifier

    Been in a predicament in ServiceNow, where you know the person a task needs to be assigned to, but don't know the right group? I got you!In this video, we ad...

  5. Assignment group of record

    The assignment group change on the change of the group membership of the user assigned to the record.

  6. Preventing Individual Assignment if not part of that Group

    Pros. People can't assign incidents directly to individuals if they are not in that group. Cons. When you are working with another person in another group, you can't reassign the incident back and forth. Also if you are working directly with someone else, you can't assign an incident directly to them if you are not in a group.

  7. How to restrict Users to have access only to the incidents ...

    How to restrict Users to have access only to the incidents assigned to their respective Assignment groups Version Any General Information Restrict users via ACLs. Grant read permission to someone if the

  8. ServiceNow Group Best Practices

    Probably one of the easiest traps people fall under is thinking that groups somehow align to departments. Work doesn't happen in silos, work is collaborative - therefore groups should be collaborative and cross functional. ServiceNow already has a department table structure for that purpose. 5) Don't Hardcode groups.

  9. Retiring/Removing Assignment Group : r/servicenow

    If you give that assignment group a "type" it should remove it from there. Could create a "retired" type for those instances. You should look at the reference qualifier for task.assignment_group and see what it's configured to use. The OOB reference qualifier won't exclude inactive groups so you may have to tweak it to filter those out.

  10. Solved: Auto Assignment of Assignment Group in Service Now...

    The ServiceNow API for Incident creation uses the Table API. The guide includes information about sending "assignment_group" parameter data with your request. Use that guide (remembering to select your specific ServiceNow version) to familiarize yourself with the attributes and values the ServiceNow API accepts for Incident creation.

  11. Is it possible to show a field for one assignment group but ...

    Yes it is based on roles. If you are part of group A, it has a specific role to read the field. If you're not part of that group with that role you can't see it. But in list view, the column is gone completely for every record. But I want that column visible on some records, not all. Which is why the logic is, if the assignment group is group A ...

  12. Declarative Actions in ServiceNow: The COMPLETE Guide

    The core table at the heart of the Declarative Actions concept is the Action Assignment sys_declarative_action_assignment table. This is the place that Declarative Action Authors will create actual DA's and set their core attributes such as: The model of the DA - i.e. the type of their DA e.g Form, Field, Playbook Card etc.

  13. servicenow

    current.task_fulfillment_group.setValue(assignment_group); as that would be a Sys ID and not the display value of the location. The script would be running on the current task record, so it's accessed using current. Also, take steps to verify that the field name is indeed task_fulfillment_group.

  14. How to get all users from assignment group in service now?While

    As you can see in your image the information for the groups is stored in table sys_user_group. The information which users are assigned to which group is stored in table sys_user_grmember. So the REST query could be a GET to this URL:

  15. How To Add Users To An Assignment Group In ServiceNow

    This ServiceNow tutorial will demonstrate how to add users to an assignment group in ServiceNow. Specifically, it will demonstrate how to add user to Service...

  16. How do I find Assignment Group id and User id in ServiceNow?

    Here are ten different methods to find the sys_id of a record in ServiceNow: Right-click or hamburger. You can right-click the header bar of most forms and find the sys_id. To get a sys_id from the header bar: Navigate to the record where you are looking for a sys_id. Right-click the header bar and select Copy sys_id.

  17. Broadway writer brings new comedy to PlayMakers

    "I love doing anything that brings me home," Brunstetter said. "And I love an assignment." Originally performed in Ancient Greece in 411 B.C., the comedy centers on an Athenian woman named Lysistrata, who aims to end the Peloponnesian War by persuading women from warring territories to withhold sexual privileges from their soldier husbands.