---
title: "Context Options: ExtendedProperties Context Key Reference for Log Events"
description: "Reference for every ExtendedProperties/1.0# context key in a Nodinite Log Event: force the Message Type, set the filename, webhook, and character encoding, bind the Repository Model, and override Log Text, Log Status, and other event fields."
---

# <i class="fal fa-sliders" aria-hidden="true"></i> Context Options

Context Options are context keys with the `ExtendedProperties/1.0#` prefix that change how the [Logging Service][] processes a [Log Event][]. Add them as key/value pairs to the [Context][JSON Log Event - Context] of the event. Every value is a JSON string, also for numbers and `true`/`false`: send `"42"`, not `42`.

![A Log Event posted in Scalar with the Context Options LogStatus 42 and MessageTypeName FlatFileInvoice/1.0, then shown in a Log View with the overridden values, animated walkthrough (7.12)][1]  
*Animated walkthrough: the [Minimal Example][JSON Log Event - Minimal Example] sent with two Context Options, `"ExtendedProperties/1.0#LogStatus": "42"` and `"ExtendedProperties/1.0#MessageTypeName": "FlatFileInvoice/1.0"`. The [Log View][Log Views] shows Message Type *FlatFileInvoice/1.0* and [Log Status Code][Log Status Codes] *42*; the details keep the *Original Message Type* *Hello.World.File/1.0*, and **Context Values (2)** still lists both keys.*  

All other context properties are your own data. The [ContextPropertiesFilters][] [System Parameter][System Parameters] removes context properties by name before they are stored, and [ProtectedContextValues][] masks their values in [Log Views][].

The [Message Type][Message Types] keys control **Step 2** of the [processing pipeline][Log Event Pipeline] (Message Type determination), which decides the [Search Field Expressions][] that are evaluated in Step 3.

<aside aria-label="Warning" class="nodinite-note nodinite-note--warning">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-triangle-exclamation"></i> Warning</p>
<div class="nodinite-note__content"><p>From <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 5.1+, context keys use the <code>ExtendedProperties/1.0</code> prefix. Legacy <code>IM.DefaultProperties/1.0</code> keys remain supported only for <code>InterchangeID</code>, <code>ApplicationInterchangeId</code>, <code>LogText</code>, <code>MessageTypeName</code>, <code>MessageTypeExtractFromBody</code> and <code>FullFilePath</code>; use the new format for new development.</p></div>
</aside>

## <i class="fal fa-table" aria-hidden="true"></i> Reference

<h3 id="message-and-payload"><i class="fal fa-file" aria-hidden="true"></i> Message and Payload</h3>

Control how the payload is processed and how the [Message Type][] is determined.

|Context Key|Value|Purpose|Details|
|---|---|---|---|
|<span id="messagetypename"></span>`ExtendedProperties/1.0#MessageTypeName`|`string`|Forces the [Message Type][Message Types] name, overriding auto-detection|[Message Type Name](#messagetypename-details)|
|<span id="messagetypeextractfrombody"></span>`ExtendedProperties/1.0#MessageTypeExtractFromBody`|`"true"` / `"false"`|Enables (`true`) or disables (`false`) Message Type extraction from the payload|[Extract from payload](#messagetypeextractfrombody-details)|
|<span id="filename"></span><span id="fullfilepath"></span><span id="originalfilename"></span>`ExtendedProperties/1.0#Filename`<br>`ExtendedProperties/1.0#FullFilePath`<br>`Filename` / `FileName` / `filename`<br>`originalFilename`|`string` (file path)|Default filename and folder for Resend, Repair, and Save in the [Web Client][]|[File Name](#filename-details)|
|<span id="endpointuri"></span>`ExtendedProperties/1.0#EndPointUri`|`string` (URL)|Webhook URI used for Resend and Repair ([ResendWebhookSettings][])|[Webhook](#endpointuri-details)|
|<span id="exception"></span>`ExtendedProperties/1.0#Exception`|`string` (JSON)|Serialized .NET exception, in JSON format; shown as a formatted exception on the **Context Values** tab||
|<span id="encoding"></span>`ExtendedProperties/1.0#Encoding`|`string` (name or number)|[Character encoding][Character Encoding] of the body <sup><span class="nodinite-new-badge">New 7.11</span></sup>|[Encoding](#encoding-details)|

<h3 id="repository-binding"><i class="fal fa-sitemap" aria-hidden="true"></i> Repository</h3>

Create and bind [Repository Model][] entities ([Integrations][], [Services][], [Systems][], [Contracts][]) from the Log Event. The structure, field tables, and examples live on [Repository Binding][]. Available from <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 4.3.0.72+, and only when the [AllowRepositoryAutomapping][] [System Parameter][System Parameters] is enabled. The Contract keys also need [UseContracts][].

|Context Key|Value|Purpose|Details|
|---|---|---|---|
|<span id="repositorybinding"></span>`ExtendedProperties/1.0#RepositoryBinding`|`string` (JSON)|Creates the complete Repository structure (Service, System, Integration, relations, [BPM][BPM Binding]) with one value; replaces the individual keys below|[Repository Binding][]|
|<span id="integrationname"></span>`ExtendedProperties/1.0#IntegrationName`|`string`|Integration name|[Individual keys][Repository Binding - Individual Keys]|
|<span id="servicename"></span>`ExtendedProperties/1.0#ServiceName`|`string`|Service name|[Individual keys][Repository Binding - Individual Keys]|
|<span id="servicesystemname"></span>`ExtendedProperties/1.0#ServiceSystemName`|`string`|System of the Service|[Individual keys][Repository Binding - Individual Keys]|
|<span id="servicedirection"></span>`ExtendedProperties/1.0#ServiceDirection`|`int` or `string`|Direction of the Service|[Direction values][Repository Binding - Service Direction Values]|
|<span id="externalservicerelationname"></span>`ExtendedProperties/1.0#ExternalServiceRelationName`|`string`|Related Service in another System|[Individual keys][Repository Binding - Individual Keys]|
|<span id="externalservicerelationsystemname"></span>`ExtendedProperties/1.0#ExternalServiceRelationSystemName`|`string`|System of the external related Service|[Individual keys][Repository Binding - Individual Keys]|
|<span id="internalservicerelationname"></span>`ExtendedProperties/1.0#InternalServiceRelationName`|`string`|Related Service in the same System|[Individual keys][Repository Binding - Individual Keys]|
|<span id="internalservicerelationdirection"></span>`ExtendedProperties/1.0#InternalServiceRelationDirection`|`int` or `string`|Direction of the internal related Service|[Direction values][Repository Binding - Service Direction Values]|
|<span id="contractname"></span>`ExtendedProperties/1.0#ContractName`|`string`|Contract name|[Individual keys][Repository Binding - Individual Keys]|
|<span id="contractsystemname"></span>`ExtendedProperties/1.0#ContractSystemName`|`string`|System of the Contract (optional)|[Individual keys][Repository Binding - Individual Keys]|

<h3 id="event-overrides"><i class="fal fa-pen-to-square" aria-hidden="true"></i> Event Overrides</h3>

Override the default [Log Event][] fields. The event's details show the new value; for the Message Type, the details also keep the *Original Message Type*.

|Context Key|Value|Purpose|Details|
|---|---|---|---|
|<span id="logtext"></span>`ExtendedProperties/1.0#LogText`|`string`|Replaces the Log Text shown for the event (the [LogText][JSON Log Event - LogText] field)|[Example](#set-the-log-text)|
|<span id="logstatus"></span>`ExtendedProperties/1.0#LogStatus`|whole number, as a `string`|Replaces the [Log Status][Log Status Codes] code (the [LogStatus][JSON Log Event - LogStatus] field) <sup><span class="nodinite-new-badge">New 5.3.0.40</span></sup>|[Log Status](#logstatus-details)|
|<span id="loglevel"></span><span id="eventdescription"></span>`ExtendedProperties/1.0#LogLevel`<br>`ExtendedProperties/1.0#EventDescription`|`string` (`Information`, `Warning`, `Error`, ...)|Creates or updates the [Log Agent][Log Agents]'s [Log Status Code][Log Status Codes] definition for the event's Log Status, as [LogStatusCodeAutoSyncPolicy][] allows||
|<span id="processingservername"></span><span id="processingmachinename"></span>`ExtendedProperties/1.0#ProcessingServerName`|`string (255)`|Replaces the server name, stored as the event's Processing Machine Name (the [ProcessingMachineName][JSON Log Event - ProcessingMachineName] field)||
|<span id="processname"></span>`ExtendedProperties/1.0#ProcessName`|`string (512)`|Replaces the process name (the [ProcessName][JSON Log Event - ProcessName] field)||
|<span id="processingmodulename"></span>`ExtendedProperties/1.0#ProcessingModuleName`|`string`|Replaces the module name (the [ProcessingModuleName][JSON Log Event - ProcessingModuleName] field)||
|<span id="processingmoduletype"></span>`ExtendedProperties/1.0#ProcessingModuleType`|`string (512)`|Replaces the module type (the [ProcessingModuleType][JSON Log Event - ProcessingModuleType] field)||
|<span id="processingtime"></span>`ExtendedProperties/1.0#ProcessingTime`|`int` (ms)|Replaces the processing duration (the [ProcessingTime][JSON Log Event - ProcessingTime] field)||
|<span id="interchangeid"></span>`ExtendedProperties/1.0#InterchangeID`|`string` (GUID)|Sets the Local Interchange Id (the [LocalInterchangeId][JSON Log Event - LocalInterchangeId] field) when the event has none||
|<span id="applicationinterchangeid"></span><span id="systeminterchangeid"></span>`ExtendedProperties/1.0#ApplicationInterchangeId`|`string`|Sets the Application Interchange Id (the [ApplicationInterchangeId][JSON Log Event - ApplicationInterchangeId] field) when the event has none. Without it, <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> tries any key that ends with `ExtendedProperties/1.0#SystemInterchangeId`, then `x-ms-client-tracking-id`.||

## <i class="fal fa-lightbulb" aria-hidden="true"></i> Choosing a Value

<h3 id="messagetypename-details">Message Type Name</h3>

Set `MessageTypeName` so the right [Search Fields][] are extracted when the [Message Type][Message Types] can't be detected, or must not be:

* Non-XML formats (EDI, flat files, JSON without schema) that can't be auto-detected
* Override auto-detection based on business logic
* Complex routing scenarios with format-specific handling

Use any unique string, for example `https://nodinite.com/Customers/1.0#Batch`.

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Version the namespace using <code>/1.0</code> or <code>/2016/05/17</code> notation for uniqueness.</p></div>
</aside>

For example, a flat file invoice without a [Message Type][] won't extract [Search Fields][]. Setting `ExtendedProperties/1.0#MessageTypeName` to `FlatFileInvoice/1.0` enables extraction of invoice numbers, customer IDs, and amounts.

<h3 id="messagetypeextractfrombody-details">Extract Message Type from Payload</h3>

If `ExtendedProperties/1.0#MessageTypeName` is **not** set, `MessageTypeExtractFromBody` is `"true"`, and the event has a body, the [Logging Service][] extracts the Message Type from the payload:

* **XML**: `TargetNameSpace#RootNodeName`
* **JSON**: Schema identifier properties
* **EDIFACT**: UNH segment, formatted by [EDIMessageTypeParseString][]

For example, for region-based routing, set `MessageTypeName` to `Invoice-EU/1.0` and `MessageTypeExtractFromBody` to `false` to prevent the XML namespace from overriding your business logic.

<h3 id="filename-details">File Name</h3>

The filename keys pre-set the filename and folder for Resend, Repair, and Save operations in the [Web Client][]. The value is a valid file path ([Windows path rules](https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>).

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Requires a body/payload to function.</p></div>
</aside>

|Example|Result|
|---|---|
|`c:\temp\in\order123.txt`|Filename: `order123.txt`, Folder: `c:\temp\in\`|
|`c:\temp\in\`|Auto-generated filename, Folder: `c:\temp\in\`|
|`c:\temp`|Filename: `temp`, Folder: `c:\`|

When a user repairs and resubmits the message to an ActiveMQ queue, the [ResubmitContextValuesForActiveMQ][] System Parameter selects which context properties are attached as message properties.

<h3 id="endpointuri-details">Webhook</h3>

`EndPointUri` sets the Webhook URI that Resend and Repair send the message to. The Webhook targets themselves, and whether users may edit the URI, are defined in the [ResendWebhookSettings][] System Parameter.

<h3 id="encoding-details">Encoding</h3>

`Encoding` sets the [character encoding][Character Encoding] of the message body for this [Log Event][] <sup><span class="nodinite-new-badge">New 7.11</span></sup>. Use an encoding name or numeric value from the [supported encodings][Supported Encodings] table, for example `Windows-1252`, `6`, or `base64:utf-8`.

This value has the highest priority: it overrides an encoding named in the XML declaration of the body, the **Character encoding** of the [Endpoint][Endpoints], and the **Character encoding** of the [Message Type][Message Types]. The [Logging Service][] uses it for processing and re-indexing, and the [Web Client][] uses it as the default in **View Message**, in [Stylesheets][], and in the [Search Field Wizard][].

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>A value that matches none of the <a href="https://docs.nodinite.com/core-services/log-event/features/character-encoding/#fa-list-supported-encodings">supported encodings</a> falls back to <strong>UTF-8</strong>.</p></div>
</aside>

<h3 id="logstatus-details">Log Status</h3>

<sup><span class="nodinite-new-badge">New 5.3.0.40</span></sup> Override the [Log Status][Log Status Codes] set by [Log Agents][] (e.g., [Azure Logic Apps Logging][LogicAppsAgent]). Send the code as a whole number in a JSON string (`"42"`); a JSON number (`42`) is refused. See the [example](#override-the-log-status). Whether incoming events create or update the Log Status Code definitions is set by [LogStatusCodeAutoSyncPolicy][].

<h2 id="examples"><i class="fal fa-code" aria-hidden="true"></i> Examples</h2>

Context Options go in the `Context` object of a [JSON Log Event][]. The snippets below show the `Context` object only.

<h3 id="set-the-log-text">Set the Log Text</h3>

```json
{"ExtendedProperties/1.0#LogText": "The node that unites different systems. Or as we call it Nodinite"}
```

<h3 id="override-the-log-status">Override the Log Status</h3>

The code goes in a JSON string; `42` without quotes is refused:

```json
{"ExtendedProperties/1.0#LogStatus": "42"}
```

<h3 id="override-log-status-and-message-type">Override the Log Status and the Message Type</h3>

The two keys of the walkthrough at the top of this page:

```json
{
  "ExtendedProperties/1.0#LogStatus": "42",
  "ExtendedProperties/1.0#MessageTypeName": "FlatFileInvoice/1.0"
}
```

<h3 id="set-the-encoding">Set the Encoding</h3>

```json
{"ExtendedProperties/1.0#Encoding": "UTF-8 (with BOM)"}
```

<h3 id="combine-keys">Combine Keys</h3>

```json
{
  "ExtendedProperties/1.0#MessageTypeName": "FlatFileInvoice/1.0",
  "ExtendedProperties/1.0#MessageTypeExtractFromBody": "false",
  "ExtendedProperties/1.0#Filename": "c:\\temp\\in\\order123.txt",
  "ExtendedProperties/1.0#Encoding": "Windows-1252"
}
```

For a complete `RepositoryBinding` value, see the [Repository Binding][] examples.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-brackets-curly" aria-hidden="true"></i> [JSON Log Event][]  
* <i class="fal fa-sitemap" aria-hidden="true"></i> [Repository Binding][]  
* <i class="fal fa-diagram-project" aria-hidden="true"></i> [BPM Binding][]  
* <i class="fal fa-language" aria-hidden="true"></i> [Character Encoding][]  
* <i class="fal fa-file" aria-hidden="true"></i> [Message Types][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-bolt" aria-hidden="true"></i> [Log Event][]  
* <i class="fal fa-cogs" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-box-archive" aria-hidden="true"></i> [Log Agents][]  
* <i class="fal fa-cloud-arrow-down" aria-hidden="true"></i> [Log API][]  
* <i class="fal fa-puzzle-piece" aria-hidden="true"></i> [Integrations][]  
* <i class="fal fa-cube" aria-hidden="true"></i> [Systems][]  
* <i class="fal fa-gear" aria-hidden="true"></i> [Services][]  
* <i class="fal fa-sign-in-alt" aria-hidden="true"></i> [Endpoints][]  
* <i class="fal fa-filter" aria-hidden="true"></i> [ContextPropertiesFilters][]  
* <i class="fal fa-lock" aria-hidden="true"></i> [ProtectedContextValues][]  
* <i class="fal fa-database" aria-hidden="true"></i> [Let Log Events Build the Model][Build from Log Events]  

[1]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/CoreServices/LogAPI/ContextOptions_Override.gif

[AllowRepositoryAutomapping]:https://docs.nodinite.com/administration/settings/system-parameters/allowrepositoryautomapping/
[BPM Binding]:https://docs.nodinite.com/core-services/log-event/features/bpm-binding/
[Build from Log Events]:https://docs.nodinite.com/getting-started/repository/documentation-strategy/let-log-events-build-the-model/
[Character Encoding]:https://docs.nodinite.com/core-services/log-event/features/character-encoding/
[ContextPropertiesFilters]:https://docs.nodinite.com/administration/settings/system-parameters/contextpropertiesfilters/
[Contracts]:https://docs.nodinite.com/getting-started/repository/contracts/overview/
[EDIMessageTypeParseString]:https://docs.nodinite.com/administration/settings/system-parameters/edimessagetypeparsestring/
[Endpoints]:https://docs.nodinite.com/repository-model/endpoints/overview/
[Integrations]:https://docs.nodinite.com/repository-model/integrations/overview/
[JSON Log Event]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/
[JSON Log Event - ApplicationInterchangeId]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#applicationinterchangeid
[JSON Log Event - Context]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#context
[JSON Log Event - LocalInterchangeId]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#localinterchangeid
[JSON Log Event - LogStatus]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#logstatus
[JSON Log Event - LogText]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#logtext
[JSON Log Event - Minimal Example]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#minimal-example
[JSON Log Event - ProcessingMachineName]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#processingmachinename
[JSON Log Event - ProcessingModuleName]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#processingmodulename
[JSON Log Event - ProcessingModuleType]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#processingmoduletype
[JSON Log Event - ProcessingTime]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#processingtime
[JSON Log Event - ProcessName]:https://docs.nodinite.com/core-services/log-event/features/json-log-event/#processname
[Log Agents]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-agent/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Log Event]:https://docs.nodinite.com/core-services/log-event/overview/
[Log Event Pipeline]:https://docs.nodinite.com/core-services/log-event/overview/#what-happens-after-you-log-an-event
[Log Status Codes]:https://docs.nodinite.com/administration/log-management/log-agents/features/what-is-a-log-status-code/
[Log Views]:https://docs.nodinite.com/administration/log-management/log-views/features/what-is-a-log-view/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[LogicAppsAgent]:https://docs.nodinite.com/logging-and-monitoring/azure-logic-apps/overview/
[LogStatusCodeAutoSyncPolicy]:https://docs.nodinite.com/administration/settings/system-parameters/logstatuscodeautosyncpolicy/
[Message Type]:https://docs.nodinite.com/repository-model/message-types/overview/
[Message Types]:https://docs.nodinite.com/repository-model/message-types/overview/
[ProtectedContextValues]:https://docs.nodinite.com/administration/settings/system-parameters/protectedcontextvalues/
[Repository Binding]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/
[Repository Binding - Individual Keys]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/#individual-keys
[Repository Binding - Service Direction Values]:https://docs.nodinite.com/core-services/log-event/features/repository-binding/#service-direction-values
[Repository Model]:https://docs.nodinite.com/repository-model/overview/
[ResendWebhookSettings]:https://docs.nodinite.com/administration/settings/system-parameters/resendwebhooksettings/
[ResubmitContextValuesForActiveMQ]:https://docs.nodinite.com/administration/settings/system-parameters/resubmitcontextvaluesforactivemq/
[Search Field Expressions]:https://docs.nodinite.com/administration/log-management/search-fields/features/search-field-expressions/overview/
[Search Field Wizard]:https://docs.nodinite.com/administration/log-management/search-fields/getting-started/how-to-use-the-search-field-wizard/
[Search Fields]:https://docs.nodinite.com/administration/log-management/search-fields/features/what-is-a-search-field/
[Services]:https://docs.nodinite.com/repository-model/services/overview/
[Stylesheets]:https://docs.nodinite.com/administration/customize/stylesheets/features/what-is-a-stylesheet/
[Supported Encodings]:https://docs.nodinite.com/core-services/log-event/features/character-encoding/#fa-list-supported-encodings
[System Parameters]:https://docs.nodinite.com/administration/settings/system-parameters/overview/
[Systems]:https://docs.nodinite.com/repository-model/systems/overview/
[UseContracts]:https://docs.nodinite.com/administration/settings/system-parameters/usecontracts/
[Web Client]:https://docs.nodinite.com/getting-started/overview/