This documentation provides a reference to the emitEventStep step. It belongs to the @medusajs/core-flows package.
emitEventStep
@medusajs/core-flows
Code1import {2 createWorkflow3} from "@medusajs/workflows-sdk"4import {5 emitEventStep6} from "@medusajs/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)
1import {2 createWorkflow3} from "@medusajs/workflows-sdk"4import {5 emitEventStep6} from "@medusajs/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)
Input