---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Pass event parameters from a workflow to a notification

# Pass event parameters from a workflow to a notification {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Pass two event parameters that send information about a record or related records from a workflow to a notification.

## Before you begin

Role required: admin

## Procedure

1. Navigate to AllSystem PolicyEventsRegistry and define a new event to call.
2. Create the activity step that calls the event from your workflow and assign the two possible parameters.  
   These parameters can be references or fields on the record that triggered the workflow, such as current.number for the request item number. You can also dot-walk to records in other tables. The event then sends the parameters information to the notification that it triggers.
3. Retrieve the parameters in the notification with email scripts by using event.parm1 and event.parm2.  
   For example:  


       var string = event.parm1.toString(); 
       template.print(string);

{#t_PassEventParameters__steps_qbl_kky_kv}

## Example

Another example using Sys IDs gives you access to anything in the record that triggered the workflow. Use a script like this to send information about a change or request to support personnel, for example.  


    var id = event.parm1.toString(); 
    var gr = new GlideRecord('sc_req_item'); 
    gr.get('sys_id', id); 
    if (gr.next()){
       // Do something.
    }

**Related concepts**   

* [Scripting for email notifications](https://servicenow-prod.fluidtopics.net/VFWG~KG2sL~GeSB1mzdFoA "Email scripts allow for business rule-like scripting within an outbound email message.")

*[\>]: and then


