Class TriggerScriptEntity
CRM Trigger Script - The script runs when a given event fires.
Carrier object for TriggerScriptEntity. Services for the TriggerScriptEntity Carrier is available from the CRMScript Agent.Namespace: SuperOffice.CRM.Services
Assembly: SuperOffice.Services.dll
Syntax
[DataContract(Namespace = "http://www.superoffice.net/ws/crm/NetServer/11.1.0.0")]
public class TriggerScriptEntity : Carrier
Examples
Get TriggerScriptEntity 123 using the agent:
using SuperOffice;
using SuperOffice.CRM.Services;
using (SoSession mySession = SoSession.Authenticate("user", "pass"))
{
var agent = new CRMScriptAgent();
var triggerScriptEntity = agent.GetTriggerScriptEntity( 123 );
}
Find all TriggerScriptEntity, get related items using archive agent.
var archive = new ArchiveAgent();
var rows = archive.GetArchiveListByColumns2("EventHandler", "...", null, "getAllRows eq 1", null, 0, 100 );
Constructors
TriggerScriptEntity()
Default constructor
Declaration
public TriggerScriptEntity()
See Also
Properties
Enabled
Whether this screen chooser is enabled or not
Declaration
[DataMember]
public virtual bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
See Also
Name
Optional description of what this script is used for.
Declaration
[DataMember]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Registered
Registered when in UTC.
Declaration
[DataMember]
public virtual DateTime Registered { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
See Also
RegisteredAssociateId
Registered by whom
Declaration
[DataMember]
public virtual int RegisteredAssociateId { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
ScreenChooserId
Primary key
Declaration
[DataMember]
public virtual int ScreenChooserId { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
ScreenType
Event id that triggers script. See EventHandlerType enum.
Declaration
[DataMember]
public virtual EventHandlerType ScreenType { get; set; }
Property Value
Type | Description |
---|---|
EventHandlerType |
See Also
Source
The CRMscript code for this event handler
Declaration
[DataMember]
public virtual string Source { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
UniqueIdentifier
Global unique identifier, accross customers/tenants
Declaration
[DataMember]
public virtual string UniqueIdentifier { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
Updated
Last updated when in UTC.
Declaration
[DataMember]
public virtual DateTime Updated { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
See Also
UpdatedAssociateId
Last updated by whom
Declaration
[DataMember]
public virtual int UpdatedAssociateId { get; set; }
Property Value
Type | Description |
---|---|
int |
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. |