Formula - Body
Easily extract the payload from your logged messages using the body formula in Nodinite. This page provides clear, real-world examples with an easy-to-read layout that separates input, formula, and result.
- ✅ Instantly extract the message payload for further processing
- ✅ Use with XML, JSON, or plain text data
- ✅ Simplify your integration and troubleshooting workflows
Design Note: The body function provides direct access to the message payload stored in the Log Event.
What does the Body formula do?
The body formula extracts the payload part from a Log Event. Use it to access the main content of your messages in log views and search fields.
Diagram: The body formula extracts the complete message payload from a Log Event for use in search fields and log views.
Syntax
The body formula extracts the message payload from a Log Event.
Common patterns:
body
Extract the entire message payload. (See Example 1)
xpath('//City', body)
Extract specific XML elements from the body. (See Example 1)
jsonpath('$.orderId', body)
Extract specific JSON values from the body. (See Example 2)
Returns: The complete message payload as text.
Examples
Below are practical examples showing exactly what input is used, the formula expression, and the resulting output.
Example 1: XML Message Body
Input
<ns0:Orders xmlns:ns0="SupplyChain.Schemas/1.0">
<Order>
<Id>1337</Id>
<Amount>666</Amount>
<City>New York</City>
<Partner>QWNtZQ==</Partner>
</Order>
</ns0:Orders>
Formula Expression - Example 1
body
Result - Example 1
<ns0:Orders xmlns:ns0="SupplyChain.Schemas/1.0">
<Order>
<Id>1337</Id>
<Amount>666</Amount>
<City>New York</City>
<Partner>QWNtZQ==</Partner>
</Order>
</ns0:Orders>
Example 2: Plain Text Body
Input - Example 2
Nodinite message body content
Formula Expression - Example 2
body
Result - Example 2
Nodinite message body content
Example: The result is the full message body as stored in the log event.
Features
- Extracts all data from any text-based structure
- Works with XML, JSON, or plain text messages
- Ideal for integration analytics and troubleshooting in Nodinite
Important
This plugin loads the entire message into RAM. For best performance, use it only on small messages.
How to use the body formula
Syntax
The body function does not require any parameters.
body
Next step
Related Topics
- Expression Type Plugins are used in Search Fields
- What are Search Fields?
- What are Search Field Expressions?
- What are Message Types?
- What are Log Views?
- Other Source formulas: context, contextKey, field
