Get event publishers of an AL object
bc_get_event_publishersLists all event publishers (IntegrationEvent, BusinessEvent, InternalEvent) in a given AL object, with name, kind, signature, attribute, and source line. Useful for finding events to subscribe to.
Instructions
Lists all event publishers ([IntegrationEvent], [BusinessEvent], [InternalEvent]) defined inside a specific AL object. Returns the event name, kind, full procedure signature, attribute, and source line. Useful for finding events to subscribe to.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"branch": "<branch>",
"source_type": "<source_type>",
"source_name": "<source_name>"
},
"name": "bc_get_event_publishers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | Branch name, e.g. "w1-26" | |
| source_type | Yes | Container object type (typically "codeunit", but can be "table", "page", etc.) | |
| source_name | Yes | Container object name, e.g. "Approvals Mgmt." (without quotes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| branch | Yes | ||
| source_type | Yes | ||
| source_name | Yes | ||
| total | Yes | ||
| events | Yes |