Show / Hide Table of Contents

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.
Inheritance
object
TriggerScriptEntity
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
ICRMScriptAgent

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
ICRMScriptAgent

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
ICRMScriptAgent

Registered

Registered when in UTC.

Declaration
[DataMember]
public virtual DateTime Registered { get; set; }
Property Value
Type Description
DateTime
See Also
ICRMScriptAgent

RegisteredAssociateId

Registered by whom

Declaration
[DataMember]
public virtual int RegisteredAssociateId { get; set; }
Property Value
Type Description
int
See Also
ICRMScriptAgent

ScreenChooserId

Primary key

Declaration
[DataMember]
public virtual int ScreenChooserId { get; set; }
Property Value
Type Description
int
See Also
ICRMScriptAgent

ScreenType

Event id that triggers script. See EventHandlerType enum.

Declaration
[DataMember]
public virtual EventHandlerType ScreenType { get; set; }
Property Value
Type Description
EventHandlerType
See Also
ICRMScriptAgent

Source

The CRMscript code for this event handler

Declaration
[DataMember]
public virtual string Source { get; set; }
Property Value
Type Description
string
See Also
ICRMScriptAgent

UniqueIdentifier

Global unique identifier, accross customers/tenants

Declaration
[DataMember]
public virtual string UniqueIdentifier { get; set; }
Property Value
Type Description
string
See Also
ICRMScriptAgent

Updated

Last updated when in UTC.

Declaration
[DataMember]
public virtual DateTime Updated { get; set; }
Property Value
Type Description
DateTime
See Also
ICRMScriptAgent

UpdatedAssociateId

Last updated by whom

Declaration
[DataMember]
public virtual int UpdatedAssociateId { get; set; }
Property Value
Type Description
int
See Also
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
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
ICRMScriptAgent

See Also

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