- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
exportProductsWorkflow - Medusa Core Workflows Reference
This documentation provides a reference to the exportProductsWorkflow
. It belongs to the @medusajs/medusa/core-flows
package.
This workflow exports products matching the specified filters. It's used by the Export Products Admin API Route.
Note: This workflow doesn't return the exported products. Instead, it sends a notification to the admin
users that they can download the exported products. Learn more in the API Reference.
Examples#
To export all products:
To export products matching a criteria:
Steps#
Workflow Hook
Step conditioned by when
Input#
ExportProductsDTO
ExportProductsDTO
ExportProductsDTO
ExportProductsDTOselect
string[]The fields to select. These fields will be passed to
Query, so you can
pass product properties or any relation names, including custom links.
select
string[]The filters to select which products to export.
Was this page helpful?