- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
createRemoteLinkStep - Helper Steps API Reference
This documentation provides a reference to the createRemoteLinkStep
step. It belongs to the @medusajs/medusa/core-flows
package.
This step creates remote links between two records of linked data models.
Learn more in the Remote Link documentation..
Example#
1import { createWorkflow } from "@medusajs/framework/workflows-sdk"2import { createRemoteLinkStep } from "@medusajs/medusa/core-flows"3import { Modules } from "@medusajs/framework/utils"4 5const helloWorldWorkflow = createWorkflow("hello-world", () => {6 createRemoteLinkStep([7 {8 [Modules.PRODUCT]: {9 product_id: "prod_123",10 },11 helloModuleService: {12 my_custom_id: "mc_123",13 },14 },15 ])16})
Input#
LinkDefinition[]
LinkDefinition[]
LinkDefinition[]
LinkDefinition[]Output#
LinkDefinition[]
LinkDefinition[]
LinkDefinition[]
LinkDefinition[]Was this page helpful?