Formula - Context
Easily extract values from the context part of your logged messages using the Context Formula in Nodinite. This page provides clear, real-world examples with a new, easy-to-read layout that separates input, formula, and result.
✅ Instantly extract key-value pairs from message context (headers, tracked properties, etc.)
✅ Use with any text-based or structured data
✅ Simplify your integration and troubleshooting workflows
What is the Context formula?
The context
formula extracts values from the context part (key/value) of a Log Event. Use it to access HTTP headers, tracked properties (Logic Apps), or context properties (BizTalk) in log views and search fields.
Syntax
context('MessageContextKeyName')
The Context function requires the name of the key to extract as a parameter.
Examples: Input, Formula, and Result
Below are practical examples showing exactly what input is used, the formula expression, and the resulting output.
Example 1: Extracting a Correlation Id
Input
Correlation Id = demo001
Formula
context('Correlation Id')
Result
demo001
Example 2: Extracting a Custom Header
Input
CustomHeader = Nodinite-Integration
Formula
context('CustomHeader')
Result
Nodinite-Integration
The result is the value of the specified context key as stored in the log event.
Features
- Extracts values from any key-value collection in the message context
- Works with HTTP headers, tracked properties, BizTalk context, and more
- 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.
Next Steps
Related Topics
- Body - Extract message body from the Log Event
- 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?