emitEventStep - Medusa Core Workflows Reference
This documentation provides a reference to the emitEventStep
. It belongs to the @medusajs/medusa/core-flows
package.
Emit an event.
Example#
1import {2 createWorkflow3} from "@medusajs/framework/workflows-sdk"4import {5 emitEventStep6} from "@medusajs/medusa/core-flows"7
8const helloWorldWorkflow = createWorkflow(9 "hello-world",10 () => {11 emitEventStep({12 eventName: "custom.created",13 data: {14 id: "123"15 }16 })17 }18)
Was this page helpful?