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
Properties
ErrorInformation
Contains error information if the validation failed
Declaration
public virtual CRMScriptErrorInfo ErrorInformation { get; set; }
Property Value
Type | Description |
---|---|
CRMScriptErrorInfo |
See Also
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
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
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
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
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
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
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. |