---
schema_version: "1"
id: ba7b5aa4da6df1b52c928f55bc117fe94809d2dca8a048ec8591a9be857a3371
title: Multipart (dw::module::Multipart)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/dw-multipart.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/dw-multipart
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 7b999c9d380670e2c74318c2252d8f877f4635421cb8d46f9f72f61efd40313a
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# Multipart (dw::module::Multipart)

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

This helper module provide functions for creating MultiPart and formats and parts (including fields
and boundaries) of MultiPart formats.

To use this module, you must import it into your DataWeave code, for example, by adding the line
`import dw::module::Multipart` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-multipart-functions-field">field</a></p></td><td><div><div><p>Creates a <code>MultipartPart</code> data structure using the specified part name, input content for the part, format (or mime type), and optionally, file name.</p></div></div></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-multipart-functions-file">file</a></p></td><td><div><div><p>Creates a <code>MultipartPart</code> data structure from a resource file.</p></div></div></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-multipart-functions-form">form</a></p></td><td><div><div><p>Creates a <code>Multipart</code> data structure using a specified array of parts.</p></div></div></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.4/dw-multipart-functions-generateboundary">generateBoundary</a></p></td><td><div><div><p>Helper function for generating boundaries in <code>Multipart</code> data structures.</p></div></div></td></tr></tbody></table>

## Types

- [Multipart Types](https://docs.mulesoft.com/dataweave/2.4/dw-multipart-types)
