---
schema_version: "1"
id: 96516354a0c673fc7047038a4d59e8f7b72f9b5993c021d3966f1e99c98ec79d
title: Using Custom Message Attributes with Message Types
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/partner-manager/latest/use-custom-attributes.md
canonical_url: https://docs.mulesoft.com/partner-manager/latest/use-custom-attributes
source_site: docs.mulesoft.com
content_type: documentation
content_hash: e2aa4ce0ef33db4405393988657fea3c58c6f6a38e78636fdf2be31ebf2e265b
description: MuleSoft Documentation Site
release: 2.x
latest: true
---
---
product: Partner Manager
version: 2.x
is-latest-version: true
---

# Using Custom Message Attributes with Message Types

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

You can associate up to five custom message attributes with a Receive from Partners or Source at
Host message type. Using these attributes enables you to have visibility into the full lifecycle of
your B2B workflow.

For example, you can define attributes for a message’s PO number, Sales order number, Invoice
number, and Shipment ID. When you associate these attributes with a message type in a message flow,
Partner Manager extracts this data from the inbound or outbound payload and displays it in the
message view of the **Activity** window. From there, you can search for an attribute value, such as
a specific PO Number, so you can view every message that has the specified attribute value.

## Create a Custom Message Attribute

Use the **<host>** page to create new custom message attributes:

1.  In the sidebar, select **<host>**.

2.  From the **Custom message attributes** section, click **New**.

3.  Enter the attribute alias and label.

    The alias is used in the reference map that is associated with the message type. The label is
    used in the message view of the transactions. Both the alias and the label must be unique across
    the host.

4.  To make the attribute searchable on the **Activity** window, select the **Is searchable**
    checkbox.

5.  Repeat these steps for each new attribute you want to define.

6.  Click **Save**.

## Associate a Custom Message Attribute with a Message Type

To associate a custom message attribute with a message type, include definitions for those
attributes in the message type’s reference map. For more information, see
[Creating Reference Maps for Message Types](https://docs.mulesoft.com/partner-manager/latest/create-reference-map).

## Dissociate a Custom Message Attribute from a Message Type

To dissociate a custom message attribute from a message type, remove it from the message type’s
reference map.

## Delete a Custom Message Attribute

You can delete custom attributes that are not used in reference maps:

1.  In the sidebar, select the **<host-name>**.

2.  In the **Custom message attributes** section, locate the attribute you want to delete.

3.  In the row containing the attribute you want to delete, hover over the attribute label, select
    the trash can that appears, and click **Delete**.

## See Also

- [Creating Message Types](https://docs.mulesoft.com/partner-manager/latest/partner-manager-create-message-type)

- [Modifying Message Type Settings](https://docs.mulesoft.com/partner-manager/latest/modify-message-type-settings)
