{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":901,"path":"api-reference/server-api-reference/SNEventSenderProviderAPI.md","title":"SNEventSenderProvider - Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# SNEventSenderProvider- Global\n\nThe SNEventSenderProvider API provides a method to instantiate an IEventSender instance.\n\nUse this API when writing scripts that will run on MID Servers to instantiate the object to send an event to your ServiceNow instance.\n\nUse the [IEventSender](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/IEventSenderAPI.md) API to send the event to the ServiceNow instance. Use the [Event](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/EventAPI.md) API to add/update fields within an event.\n\nYou 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.\n\nFor additional information on event management, see [Event Management](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/it-operations-management/c_EM.md).\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## EventSender - getEventSender\\(\\)\n\nReturns an IEventSender object to use to send events from a MID Server to a ServiceNow instance.\n\nYou must call this method before calling any IEventSender API methods.\n\n|Name|Type|Description|\n|----|----|-----------|\n|None| | |\n\n|Type|Description|\n|----|-----------|\n|IEventSender|IEventSender object to use to send an event to a ServiceNow instance.|\n\n```\nvar eventSender = SNEventSenderProvider.getEventSender();\n```\n\n"}}