Class CRMScriptRunResult
Object for returning result from a CRMScript
Carrier object for CRMScriptRunResult. Services for the CRMScriptRunResult Carrier is available from the ICRMScriptAgent.Syntax
public class CRMScriptRunResult : Carrier
Constructors
CRMScriptRunResult()
Default constructor
Declaration
public CRMScriptRunResult()
See Also
Properties
ErrorInformation
Contains error information if the execution failed
Declaration
public virtual CRMScriptErrorInfo ErrorInformation { get; set; }
Property Value
Type | Description |
---|---|
CRMScriptErrorInfo |
See Also
Eventdata
The EventData instance after script execution with output values
Declaration
public virtual EventData Eventdata { get; set; }
Property Value
Type | Description |
---|---|
EventData |
See Also
Headers
Optional result headers for context that supports it
Declaration
public virtual StringDictionary Headers { get; set; }
Property Value
Type | Description |
---|---|
StringDictionary |
See Also
Output
The output from the script, normally from a print or printLine statement
Declaration
public virtual string Output { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Parameters
The parameters/variables that might have been modified by the script
Declaration
public virtual StringDictionary Parameters { get; set; }
Property Value
Type | Description |
---|---|
StringDictionary |
See Also
StatusCode
The status code which is available to be returned from Typescript scripts
Declaration
public virtual int StatusCode { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
See Also
StatusMessage
An additional status message that can be sent along with the status code
Declaration
public virtual string StatusMessage { get; set; }
Property Value
Type | Description |
---|---|
String |
See Also
Success
Indicates if the script was executed successfully, or if it failed. In case of failing, the error members will contain more information
Declaration
public virtual bool Success { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
See Also
TraceRun
Contains the trace information from the script execution
Declaration
public virtual CRMScriptTraceRun TraceRun { get; set; }
Property Value
Type | Description |
---|---|
CRMScriptTraceRun |
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The carrier contents. |
See Also
ToString(String)
Returns the carrier contents as a formatted string, useful for debugging. Each line in the output is prefixed with the input value.
Declaration
public string ToString(string prefix)
Parameters
Type | Name | Description |
---|---|---|
String | prefix | The line prefix (typically used for indenting) |
Returns
Type | Description |
---|---|
String | The carrier contents. |