Understand record changed EventArgs properties
- Last UpdatedApr 07, 2025
- 2 minute read
This topic relates to Understand function parameters for the Function property of an Action item.
EventArg properties
There are several properties on the RecordChangedEventArgs type, many of which are complex types themselves. This table contains descriptions of the properties directly on the RecordChangedEventArgs type itself.

|
Property |
Description |
|---|---|
|
Record |
This property has been deprecated. Using this property will produce a validation warning Use CurrentData and PreviousData properties instead. |
|
CurrentData |
The previous values for the current record that is affected by the record changed event. This is a dictionary of field name value pairs of type: IReadOnlyDictionary<String, RecordChangedValue> The RecordChangedValue will have two properties: Value (Object) and Resolved Value (Object). For example, the field Cause Code might have a Value of 15675, while the Resolved Value might be "Power Outage." These values can be null. |
|
PreviousData |
The previous values for the current record that is affected by the record changed event. This is a dictionary of field name value pairs of type: IReadOnlyDictionary<String, RecordChangeValue> The RecordChangedValue will have two properties: Value (Object) and Resolved Value (Object). For example, the field Cause Code might have a Value of 15675, while the Resolved Value might be "Power Outage." These values can be null. |
|
Action |
The record changed Action that describes how the sample is affected. For more information about RecordChangeAction values, see Understand record changed Action values. |
|
RecordId |
The ID of the record that was changed. |
|
RequestOrigin |
The RequestOrigin property uniquely identifies the origin (or requestor) of the SubmitData web service request. This information can be used to ensure an event wasn't triggered by the same origin to prevent infinite loops. For example, when you have an Action item subscribed to a RecordChanged event and configured to perform a SubmitData request. This can potentially result in another RecordChanged event. To avoid this scenario, you can perform a check at the start of a code item with the RequestOrigin property. |
Code example
This code example shows how to retrieve Current Data and Previous Data using the new eventArgs object.
var e = eventArgs as RecordChangedEventArgs;
var field1_Current = e.CurrentData["Field 1"].Value.ToString();
//Below returns the Resolved Value
var field1Resolved_Current = e.CurrentData["Field 1"].ResolvedValue.ToString();
var field1_Previous = e.PreviousData["Field 1"].Value.ToString();
//Below returns the Resolved Value
var field1Resolved_Previous = e.PreviousData["Field 1"].ResolvedValue.ToString();