> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.Data.CRMScriptTraceRun

# <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun" /> Class CRMScriptTraceRun

Namespace: [SuperOffice.WebApi.Data](SuperOffice.WebApi.Data.md)\
Assembly: SuperOffice.WebApi.dll

Carrier object for CRMScriptTraceRun.
Object for returning Trace run result from a CRMScript

```csharp theme={null}
public class CRMScriptTraceRun : Carrier
```

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[CRMScriptTraceRun](SuperOffice.WebApi.Data.CRMScriptTraceRun.md)

#### Inherited Members

[Carrier.TableRight](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_TableRight),
[Carrier.FieldProperties](SuperOffice.WebApi.Data.Carrier.md#SuperOffice_WebApi_Data_Carrier_FieldProperties),
[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Constructors

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun__ctor" /> CRMScriptTraceRun()

Default constructor - defaults any enum props to 0.

```csharp theme={null}
public CRMScriptTraceRun()
```

## Properties

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_AssociateId" /> AssociateId

Associate who the script was executed as

```csharp theme={null}
public virtual int AssociateId { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_EndedAt" /> EndedAt

When the trace was ended

```csharp theme={null}
public virtual DateTime EndedAt { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_ExecutionTime" /> ExecutionTime

Real seconds spent executing

```csharp theme={null}
public virtual int ExecutionTime { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_FileSize" /> FileSize

The size of the trace file

```csharp theme={null}
public virtual int FileSize { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_ForceSaveTrace" /> ForceSaveTrace

This trace should be saved even if script\_trace.exception\_only is true.

```csharp theme={null}
public virtual bool ForceSaveTrace { get; set; }
```

#### Property Value

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_Frames" /> Frames

The frames of the the trace

```csharp theme={null}
public virtual string Frames { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_NumFrames" /> NumFrames

The number of frames saved

```csharp theme={null}
public virtual int NumFrames { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_PeakMemory" /> PeakMemory

The maximum amount of used memory during execution (in kB)

```csharp theme={null}
public virtual int PeakMemory { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_StartedAt" /> StartedAt

When the trace was started

```csharp theme={null}
public virtual DateTime StartedAt { get; set; }
```

#### Property Value

[DateTime](https://learn.microsoft.com/dotnet/api/system.datetime)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_Status" /> Status

The status of the script, or exception if it fails

```csharp theme={null}
public virtual string Status { get; set; }
```

#### Property Value

[string](https://learn.microsoft.com/dotnet/api/system.string)

### <a id="SuperOffice_WebApi_Data_CRMScriptTraceRun_UserExecutionTime" /> UserExecutionTime

CPU seconds spent executing

```csharp theme={null}
public virtual int UserExecutionTime { get; set; }
```

#### Property Value

[int](https://learn.microsoft.com/dotnet/api/system.int32)

## See Also

[CRMScriptAgent](SuperOffice.WebApi.Agents.CRMScriptAgent.md)


## Related topics

- [SuperOffice.WebApi.Data.CRMScriptRunResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.CRMScriptRunResult.md)
- [SuperOffice.WebApi.Data.WorkflowStepRunScript](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepRunScript.md)
- [SuperOffice.WebApi.Data.EventData](/en/api/reference/webapi/SuperOffice.WebApi.Data.EventData.md)
- [Using trace](/en/automation/crmscript/debugging/using-trace.md)
- [script_trace_run table](/en/database/tables/script-trace-run.md)
- [script_trace table](/en/database/tables/script-trace.md)
