Support user-defined email subjects in outbound Collaboration Messages
You can define the subject line for outbound collaboration emails by modifying the XSL for the applicable outbound collaboration message.
A new cmk:Subject element is supported within cmk:EmailContent. You can use static text, values selected from the outbound payload through XSL, or a combination of both to create email subjects.
When the XSL generates a subject value, Collaboration Messaging uses it instead of the default email subject configured for the message. If the XSL does not generate a subject value, the configured default email subject is used.
This feature:
- Provides recipients with clear, contextual email subjects that help them identify the purpose of a collaboration message before opening it.
- Supports dynamic subjects that can include document identifiers and other payload values while retaining the flexibility to add descriptive static text.
- Preserves the existing configured default email subject as a reliable fallback when a custom subject is not produced by the XSL.
Steps to enable and configure
At a high level, you need to do the following to use this new functionality:
- Download the XSL for the outbound collaboration message that you want to customize.
- Modify the downloaded outbound collaboration message XSL to add cmk:Subject within cmk:EmailContent.
- Create a duplicate of the predefined message definition and associate it with your modified XSL.
Download the XSL
- Select Collaboration Message Definitions, and search for the outbound collaboration message definition that you want to customize.
- Select the message definition and select Actions > Export Transformation Package.
- Save the transformation package and extract the XSL file from the XSL folder.
Modify the outbound collaboration message XSL
Using an XSL editor, add cmk:Subject within cmk:EmailContent. The subject can contain literal text, XSL expressions that select values from the outbound payload, or a combination of both. The following examples show a static subject and a subject generated from a value in the outbound payload.
Static subject example:
<cmk:EmailContent>
<cmk:Subject>Subject</cmk:Subject>
</cmk:EmailContent>
XPath-only subject example:
<cmk:EmailContent>
<cmk:Subject>
<xsl:value-of select="(//tns:result/ns2:PdfDraftPurchaseOrderHeaderVORow/ns2:Segment1)"/>
</cmk:Subject>
</cmk:EmailContent>
Replace the XPath and namespace prefixes with values that match the selected message XSL and its outbound payload.
Create a custom message definition
- Select Collaboration Message Definitions, and then select the original message definition. Select Actions > Duplicate.
- On the Duplicate collaboration message dialog, add a name and select your modified XSL file.

Duplicate a collaboration message
Tips and considerations
- Use an XSL that generates a cmk:processOutboundCollaborationMessage wrapper containing cmk:OutboundCollaborationMessage.
- Place cmk:Subject within cmk:EmailContent. If the XSL already generates cmk:Body, add cmk:Subject before the cmk:Body.
- You shouldn't add cmk:EmailContent directly to a raw business-payload XSL, such as one that produces cXML as its root output.
- The XSL generated subject takes precedence over the default email subject configured in Email Properties.
- If the XSL does not generate a subject value, the configured default email subject is used automatically.
Key resources
- Refer to the Configuring and Managing B2B Messaging for Oracle Fusion Cloud SCM guide on the Oracle Help Center.
Access requirements
Users need all of the following privileges to access this feature. Privileges marked as new were introduced in this update.
| Privilege status | Privilege name and code |
|---|---|
| Previously delivered | Manage B2B Trading Partners CMK_B2B_TRADING_PARTNERS_PRIV |
| Previously delivered | Manage Service Provider CMK_MANAGE_SERVICE_PROVIDER_PRIV |
| Previously delivered | Manage Collaboration Message Definitions by Web Service CMK_MANAGE_COLLAB_MESG_DEFINITION_WEB_SERVICE_PRIV |