Show / Hide Table of Contents

Class CRMScriptResult

Object for returning information when validating a CRMScript

Carrier object for CRMScriptResult. Services for the CRMScriptResult Carrier is available from the ICRMScriptAgent.
Syntax
public class CRMScriptResult : Carrier

Constructors

CRMScriptResult()

Default constructor

Declaration
public CRMScriptResult()
See Also
CRMScriptAgent
ICRMScriptAgent

Properties

ErrorInformation

Contains error information if the validation failed

Declaration
public virtual CRMScriptErrorInfo ErrorInformation { get; set; }
Property Value
Type Description
CRMScriptErrorInfo
See Also
CRMScriptAgent
ICRMScriptAgent

ErrorMessage

Deprecated, see ErrorInformation instead. Contains the error message for a non-valide CRMScript

Declaration
public virtual string ErrorMessage { get; set; }
Property Value
Type Description
String
See Also
CRMScriptAgent
ICRMScriptAgent

Includes

The unique ids of all depencies of this script (all resolved includes)

Declaration
public virtual int[] Includes { get; set; }
Property Value
Type Description
Int32[]
See Also
CRMScriptAgent
ICRMScriptAgent

LineNumber

Deprecated, see ErrorInformation instead. The line number containing the incorrect syntax, if available

Declaration
public virtual int LineNumber { get; set; }
Property Value
Type Description
Int32
See Also
CRMScriptAgent
ICRMScriptAgent

SourceMaps

Array of source maps showing where in the original code a specific line originated from

Declaration
public virtual CRMScriptSourceMap[] SourceMaps { get; set; }
Property Value
Type Description
CRMScriptSourceMap[]
See Also
CRMScriptAgent
ICRMScriptAgent

Transpiled

This will contain transpiled code. In case of Typescript, this will then contain the executable JavaScript

Declaration
public virtual string Transpiled { get; set; }
Property Value
Type Description
String
See Also
CRMScriptAgent
ICRMScriptAgent

Valid

True if the CRMScript was successfully validated. If false, see the error message for details

Declaration
public virtual bool Valid { get; set; }
Property Value
Type Description
Boolean
See Also
CRMScriptAgent
ICRMScriptAgent

Methods

ToString()

Returns the carrier contents as a formatted string.

Declaration
public override string ToString()
Returns
Type Description
String

The carrier contents.

See Also
CRMScriptAgent
ICRMScriptAgent

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.

See Also
CRMScriptAgent
ICRMScriptAgent

See Also

CRMScriptAgent
ICRMScriptAgent
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top