---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# SNEventSenderProvider - Global

# SNEventSenderProvider - Global {#ariaid-title1}

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

The SNEventSenderProvider API provides a method to instantiate an IEventSender instance.

Use this API when writing scripts that will run on MID Servers to
instantiate the object to send an event to your ServiceNow instance.

Use the [IEventSender](https://servicenow-prod.fluidtopics.net/OSkIM75qskBoCMXMoXW~Yg#IEventSenderAPI "The IEventSender API provides methods to send events from a MID Server to a ServiceNow instance and to query the status of the event queue.") API to send the event to the ServiceNow instance. Use the [Event](https://servicenow-prod.fluidtopics.net/Be3VjWWpPnTS~WNzhwp5Hw#EventAPI "The Event API provides methods that enable the setting and getting of values within an event.") API to add/update fields within an event.

You must activate the Event Management (com.glideapp.itom.snac) plugin before attempting to access this API. The Event Management plugin requires a separate subscription and must be activated. This
plugin includes demo data and activates related plugins if they are not already active.

For additional information on event management, see [Event Management](https://www.servicenow.com/docs/access?context=c_EM&version=xanadu&pubname=xanadu-it-operations-management&ft:locale=en-US).

## EventSender - getEventSender() {#ariaid-title2}

Returns an IEventSender object to use to send events from a MID Server
to a ServiceNow instance.
You must call this method before calling any IEventSender API
methods.
{#EventSender-getEventSender__table_ew4_hjm_kkb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#EventSender-getEventSender__table_ew4_hjm_kkb} {#EventSender-getEventSender__table_fw4_hjm_kkb__entry__2}

| Type | Description |
|-|-|
| IEventSender | IEventSender object to use to send an event to a ServiceNow instance. |
[Table 2. Returns]

{#EventSender-getEventSender__table_fw4_hjm_kkb}  

    var eventSender = SNEventSenderProvider.getEventSender();


