---
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."
---

# :fa-sliders: 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.

>[!WARNING]
>From :Nodinite: 5.1+, context keys use the `ExtendedProperties/1.0` prefix. Legacy `IM.DefaultProperties/1.0` keys remain supported only for `InterchangeID`, `ApplicationInterchangeId`, `LogText`, `MessageTypeName`, `MessageTypeExtractFromBody` and `FullFilePath`; use the new format for new development.

## :fa-table: Reference

### :fa-file: Message and Payload {#message-and-payload}

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 :new7.11:|[Encoding](#encoding-details)|

### :fa-sitemap: Repository {#repository-binding}

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 :Nodinite: 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]|

### :fa-pen-to-square: Event Overrides {#event-overrides}

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) :new5.3.0.40:|[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, :Nodinite: tries any key that ends with `ExtendedProperties/1.0#SystemInterchangeId`, then `x-ms-client-tracking-id`.||

## :fa-lightbulb: Choosing a Value

### Message Type Name {#messagetypename-details}

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`.

>[!TIP]
>Version the namespace using `/1.0` or `/2016/05/17` notation for uniqueness.

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.

### Extract Message Type from Payload {#messagetypeextractfrombody-details}

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.

### File Name {#filename-details}

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>:fa-arrow-up-right-from-square:</sup>).

>[!NOTE]
>Requires a body/payload to function.

|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.

### Webhook {#endpointuri-details}

`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.

### Encoding {#encoding-details}

`Encoding` sets the [character encoding][Character Encoding] of the message body for this [Log Event][] :new7.11:. 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][].

>[!IMPORTANT]
>A value that matches none of the [supported encodings][Supported Encodings] falls back to **UTF-8**.

### Log Status {#logstatus-details}

:new5.3.0.40: 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][].

## :fa-code: Examples {#examples}

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

### Set the Log Text {#set-the-log-text}

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

### Override the Log Status {#override-the-log-status}

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

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

### Override the Log Status and the Message Type {#override-log-status-and-message-type}

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"
}
```

### Set the Encoding {#set-the-encoding}

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

### Combine Keys {#combine-keys}

```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.

## :fa-hand-point-right: Next Steps

* :fa-brackets-curly: [JSON Log Event][]  
* :fa-sitemap: [Repository Binding][]  
* :fa-diagram-project: [BPM Binding][]  
* :fa-language: [Character Encoding][]  
* :fa-file: [Message Types][]  

## :fa-link-horizontal: Related Topics

* :fa-bolt: [Log Event][]  
* :fa-cogs: [Logging Service][]  
* :fa-box-archive: [Log Agents][]  
* :fa-cloud-arrow-down: [Log API][]  
* :fa-puzzle-piece: [Integrations][]  
* :fa-cube: [Systems][]  
* :fa-gear: [Services][]  
* :fa-sign-in-alt: [Endpoints][]  
* :fa-filter: [ContextPropertiesFilters][]  
* :fa-lock: [ProtectedContextValues][]  
* :fa-database: [Let Log Events Build the Model][Build from Log Events]  

[1]:{ndm}/Documentation%20Pictures/IM/CoreServices/LogAPI/ContextOptions_Override.gif

[AllowRepositoryAutomapping]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/AllowRepositoryAutomapping.md
[BPM Binding]:{ndr}/Core%20Services/Log%20Event/Features/BPM%20Binding.md
[Build from Log Events]:{ndr}/Getting%20Started/4.%20Repository/Documentation%20Strategy/Let%20Log%20Events%20Build%20the%20Model.md
[Character Encoding]:{ndr}/Core%20Services/Log%20Event/Features/Character%20Encoding.md
[ContextPropertiesFilters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ContextPropertiesFilters.md
[Contracts]:{ndr}/Getting%20Started/4.%20Repository/Contracts/Overview.md
[EDIMessageTypeParseString]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/EDIMessageTypeParseString.md
[Endpoints]:{ndr}/Repository%20Model/Endpoints/Overview.md
[Integrations]:{ndr}/Repository%20Model/Integrations/Overview.md
[JSON Log Event]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md
[JSON Log Event - ApplicationInterchangeId]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#applicationinterchangeid
[JSON Log Event - Context]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#context
[JSON Log Event - LocalInterchangeId]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#localinterchangeid
[JSON Log Event - LogStatus]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#logstatus
[JSON Log Event - LogText]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#logtext
[JSON Log Event - Minimal Example]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#minimal-example
[JSON Log Event - ProcessingMachineName]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#processingmachinename
[JSON Log Event - ProcessingModuleName]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#processingmodulename
[JSON Log Event - ProcessingModuleType]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#processingmoduletype
[JSON Log Event - ProcessingTime]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#processingtime
[JSON Log Event - ProcessName]:{ndr}/Core%20Services/Log%20Event/Features/JSON%20Log%20Event.md#processname
[Log Agents]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Agent.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Log Event]:{ndr}/Core%20Services/Log%20Event/Overview.md
[Log Event Pipeline]:{ndr}/Core%20Services/Log%20Event/Overview.md#what-happens-after-you-log-an-event
[Log Status Codes]:{ndr}/Administration/1.%20Log%20Management/3.%20Log%20Agents/Features/What%20is%20a%20Log%20Status%20Code.md
[Log Views]:{ndr}/Administration/1.%20Log%20Management/1.%20Log%20Views/Features/What%20is%20a%20Log%20View.md
[Logging Service]:{ndr}/Core%20Services/Logging%20Service/Overview.md
[LogicAppsAgent]:{ndr}/Logging%20and%20Monitoring/Azure%20Logic%20Apps/Overview.md
[LogStatusCodeAutoSyncPolicy]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/LogStatusCodeAutoSyncPolicy.md
[Message Type]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[Message Types]:{ndr}/Repository%20Model/Message%20Types/Overview.md
[ProtectedContextValues]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ProtectedContextValues.md
[Repository Binding]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md
[Repository Binding - Individual Keys]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md#individual-keys
[Repository Binding - Service Direction Values]:{ndr}/Core%20Services/Log%20Event/Features/Repository%20Binding.md#service-direction-values
[Repository Model]:{ndr}/Repository%20Model/Overview.md
[ResendWebhookSettings]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ResendWebhookSettings.md
[ResubmitContextValuesForActiveMQ]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/ResubmitContextValuesForActiveMQ.md
[Search Field Expressions]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/Search%20Field%20Expressions/Overview.md
[Search Field Wizard]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Getting%20started/How%20to%20use%20the%20Search%20Field%20Wizard.md
[Search Fields]:{ndr}/Administration/1.%20Log%20Management/2.%20Search%20Fields/Features/What%20is%20a%20Search%20Field.md
[Services]:{ndr}/Repository%20Model/Services/Overview.md
[Stylesheets]:{ndr}/Administration/4.%20Customize/2.%20Stylesheets/Features/What%20is%20a%20Stylesheet.md
[Supported Encodings]:{ndr}/Core%20Services/Log%20Event/Features/Character%20Encoding.md#fa-list-supported-encodings
[System Parameters]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/Overview.md
[Systems]:{ndr}/Repository%20Model/Systems/Overview.md
[UseContracts]:{ndr}/Administration/5.%20Settings/5.%20System%20Parameters/UseContracts.md
[Web Client]:{ndr}/Getting%20Started/Overview.md