# Emit Event Example

> emonstrates triggering application events to initiate workflows with API Maker.

Source: https://docs.apimaker.dev/v1/examples/sys/system/emitEvent.html

`g.sys.system.emitEvent` calls the [emit event system API](https://docs.apimaker.dev/v1/docs/apis-all/system-apis/system-generated-emit-event-api.html) from your code, whatever the settings of that API say about HTTP callers.

### Emit event System API

Emit event using global object 'g'.

```ts
await g.sys.system.emitEvent("EVENT_NAME", "EVENT_DATA", ["LISTENERS_NAME"]);
```

## Related

- [Emit event system API](https://docs.apimaker.dev/v1/docs/apis-all/system-apis/system-generated-emit-event-api.html) · [All system APIs from code](https://docs.apimaker.dev/v1/examples/sys/system/system.html) · [The global object g](https://docs.apimaker.dev/v1/docs/pre-defined-terms/global-object-g.html)
