Skip to content
Documentation
Updated 2 minutes to read
Markdown

The field Formula function returns the value of a named field of the Log Event, such as MessageGUID or EventId.

Read the interchange id and then the MessageGUID of an Order-to-Cash event with field, animated walkthrough (7.12)
Animated walkthrough: with the Field Values of the logged Order Received event of order ORD-10005 in the Order-to-Cash demo, field('ApplicationInterchangeId') returns PIC-20261115-1838-0005, and field('MessageGUID') returns the id of the event's body part.

field('fieldName')
Parameter Required Description
'fieldName' Yes The name of the Log Event field, in single quotes, written exactly as in the table below (case-sensitive).

These are the fields the Field Values tab of the test bench shows (see Test Your Expression). They come from the details part of the Log Event; see JSON Log Event - Details for how each one is set when you log.

Name Description
ApplicationInterchangeId Id for the application scope
EndPointDirection The Endpoint Direction
EventDirection The Event Direction
EventId Id of the event (GUID)
LocalInterchangeId Id for the local scope
LogDateTime The originating date and time of the Log Event
MessageGUID Id of the main body part (GUID)
OriginalMessageTypeName The name of the Message Type
TotalSize Size in bytes

The value of the named field as text, one value per Log Event.

Key Value
EventId 77dcae21-8c28-ed11-8b59-00155d00b90d
LogDateTime 2022-08-30T19:47:09.3663111+02:00
MessageGUID ca8e3ab5-7359-4726-a9ca-1f594a4190a1
field('MessageGUID')
ca8e3ab5-7359-4726-a9ca-1f594a4190a1

Test Expression tab, Field Values: field('MessageGUID') returns ca8e3ab5-7359-4726-a9ca-1f594a4190a1 (7.12)
The value of the MessageGUID row in the Field Values tab is returned as the single match. The screenshot is the Search Field editor's Test Expression tab; the Search Field Wizard Test step has the same tabs.

The Field Values of the same Log Event:

Field Values tab listing the nine Log Event field names and their test values (7.12)
The Field Values tab lists every field name you can pass to field, with the values of the test Log Event.

field('EventId')
77dcae21-8c28-ed11-8b59-00155d00b90d
  • field reads the fixed Log Event fields only. Use context for Message Context properties and body for the payload.
  • Nest field in other functions like any other content, for example substring(0, 10, field('LogDateTime')) to keep the date part.

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...