Class CRMScriptEntity
CRM Scripts - stored in the ejScript table, including source code.
Carrier object for CRMScriptEntity. Services for the CRMScriptEntity Carrier is available from the ICRMScriptAgent.Syntax
public class CRMScriptEntity : Carrier
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
Constructors
CRMScriptEntity()
Default constructor
Declaration
public CRMScriptEntity()
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Properties
AccessKey
Access key used to run this script on the customer pages
Declaration
public virtual string AccessKey { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Description
Optional description of what this script is used for.
Declaration
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
EjscriptId
Primary key
Declaration
public virtual int EjscriptId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
HierarchyId
The script is inside this hierarchy folder
Declaration
public virtual int HierarchyId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
HtmlOutput
True if this script will return HTML output
Declaration
public virtual short HtmlOutput { get; set; }
Property Value
Type | Description |
---|---|
Int16 |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
IncludeId
A unique name used for including this script in another
Declaration
public virtual string IncludeId { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
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[] |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Name
A description of this script
Declaration
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Registered
Registered when in UTC.
Declaration
public virtual DateTime Registered { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
RegisteredAssociateId
Registered by whom
Declaration
public virtual int RegisteredAssociateId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
ScriptType
The type/language of this script
Declaration
public virtual ScriptType ScriptType { get; set; }
Property Value
Type | Description |
---|---|
ScriptType |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Source
The script
Declaration
public virtual string Source { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
SourceCode
Contains the source code of the script
Declaration
public virtual string SourceCode { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
SourceMaps
The source maps for this script
Declaration
public virtual CRMScriptSourceMap[] SourceMaps { get; set; }
Property Value
Type | Description |
---|---|
CRMScriptSourceMap[] |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
UniqueIdentifier
Global unique identifier, accross customers/tenants
Declaration
public virtual string UniqueIdentifier { get; set; }
Property Value
Type | Description |
---|---|
String |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Updated
Last updated when in UTC.
Declaration
public virtual DateTime Updated { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
UpdatedAssociateId
Last updated by whom
Declaration
public virtual int UpdatedAssociateId { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
ValidationResult
The result of a validation of a TypeScript when saving
Declaration
public virtual CRMScriptResult ValidationResult { get; set; }
Property Value
Type | Description |
---|---|
CRMScriptResult |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
See Also
Methods
ToString()
Returns the carrier contents as a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | The carrier contents. |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );
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. |
Examples
Get CRMScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var cRMScriptEntity = agent.GetCRMScriptEntity( 123 );
}
Find all CRMScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("Ejscripts", "...", null, "getAllRows eq 1", null, 0, 100 );