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

# <a id="SuperOffice_WebApi_Data_CRMScriptRunResult" /> Class CRMScriptRunResult

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

Carrier object for CRMScriptRunResult.
Object for returning result from a CRMScript

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

#### Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Carrier](SuperOffice.WebApi.Data.Carrier.md) ←
[CRMScriptRunResult](SuperOffice.WebApi.Data.CRMScriptRunResult.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_CRMScriptRunResult__ctor" /> CRMScriptRunResult()

Default constructor - defaults any enum props to 0.

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

## Properties

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_ErrorInformation" /> ErrorInformation

Contains error information if the execution failed

```csharp theme={null}
public virtual CRMScriptErrorInfo ErrorInformation { get; set; }
```

#### Property Value

[CRMScriptErrorInfo](SuperOffice.WebApi.Data.CRMScriptErrorInfo.md)

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_Eventdata" /> Eventdata

The EventData instance after script execution with output values

```csharp theme={null}
public virtual EventData Eventdata { get; set; }
```

#### Property Value

[EventData](SuperOffice.WebApi.Data.EventData.md)

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_Headers" /> Headers

Optional result headers for context that supports it

```csharp theme={null}
public virtual StringDictionary Headers { get; set; }
```

#### Property Value

[StringDictionary](SuperOffice.WebApi.Data.StringDictionary.md)

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_Output" /> Output

The output from the script, normally from a print or printLine statement

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_Parameters" /> Parameters

The parameters/variables that might have been modified by the script

```csharp theme={null}
public virtual StringDictionary Parameters { get; set; }
```

#### Property Value

[StringDictionary](SuperOffice.WebApi.Data.StringDictionary.md)

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_StatusCode" /> StatusCode

The status code which is available to be returned from Typescript scripts

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_StatusMessage" /> StatusMessage

An additional status message that can be sent along with the status code

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_Success" /> Success

Indicates if the script was executed successfully, or if it failed. In case of failing, the error members will contain more information

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

#### Property Value

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

### <a id="SuperOffice_WebApi_Data_CRMScriptRunResult_TraceRun" /> TraceRun

Contains the trace information from the script execution

```csharp theme={null}
public virtual CRMScriptTraceRun TraceRun { get; set; }
```

#### Property Value

[CRMScriptTraceRun](SuperOffice.WebApi.Data.CRMScriptTraceRun.md)

## See Also

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


## Related topics

- [SuperOffice.WebApi.Agents.ICRMScriptAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ICRMScriptAgent.md)
- [SuperOffice.WebApi.Agents.CRMScriptAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.CRMScriptAgent.md)
- [SuperOffice.WebApi.Data.CRMScriptTraceRun](/en/api/reference/webapi/SuperOffice.WebApi.Data.CRMScriptTraceRun.md)
- [SuperOffice.WebApi.Data.WorkflowStepRunScript](/en/api/reference/webapi/SuperOffice.WebApi.Data.WorkflowStepRunScript.md)
- [SuperOffice.WebApi.Data.Carrier](/en/api/reference/webapi/SuperOffice.WebApi.Data.Carrier.md)
- [SuperOffice.WebApi.Data.CRMScriptResult](/en/api/reference/webapi/SuperOffice.WebApi.Data.CRMScriptResult.md)
