--- title: "Code event" slug: "bc-code-event-devkit" tags: ["BC", "BIS", "Business Central", "Business Integration Solutions", "Task"] updated: 2026-06-25T07:58:54Z published: 2026-06-25T09:59:17Z canonical: "docs.staedean.com/bc-code-event-devkit" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.staedean.com/llms.txt > Use this file to discover all available pages before exploring further. # Code event A **Code** event triggers a pipeline for a specific record. A **NETCode** event or **User** event achieves the same but are marked obsolete. The **Code** event triggers a connection pipeline for a specific record. Use this event to start a connection from a certain Microsoft Dynamics 365 Business Central object. This event triggers in the current transaction (synchronous). > [!NOTE] > **Note** > > A **User** event is a specific implementation of the **NETCode** event but uses the same code. The only difference is the setup options. Both are replaced by the **Code** event. Examples of a **Code** event: - Triggering a connection while releasing or posting a sales document. - Triggering a connection when a report runs. - Triggering a connection manually via an action on Anywhere Mobility Solutions page. ## Setup This table provides links to more information on setting up code events: | To | See | | --- | --- | | Set up a code event in a connection | [Set up a Code event / NETCode event](/business-central/docs/bc-setting-up-events) | | Add a code event trigger | [Create a Code event / NETCode event](/business-central/docs/bc-create-a-code-event-netcode-event) | ## Related - [Set up a Code event / NETCode event](/bc-set-up-a-code-event-netcode-event.md) - [Create a Code event / NETCode event](/bc-create-a-code-event-netcode-event.md)