> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSSystemEventEntity

> Entity for system events.

Entity for system events.

## Constructors

### NSSystemEventEntity()

```crmscript theme={null}
NSSystemEventEntity
```

Initializes a new instance of the NSSystemEventEntity class.

## Methods

## GetActivatedBy()

```crmscript theme={null}
NSAssociate GetActivatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The associate that first created the SystemEvent.

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
NSAssociate activatedBy = thing.GetActivatedBy();
```

## GetEta()

```crmscript theme={null}
DateTime GetEta()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Estimated Time of Arrival, i.e., when will this event finish?

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
DateTime eta = thing.GetEta();
```

## GetEventkey()

```crmscript theme={null}
String GetEventkey()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Event key, predefined in code.

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
String eventkey = thing.GetEventkey();
```

## GetEventmess()

```crmscript theme={null}
String GetEventmess()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Message to be shown, entered by administrator.

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
String eventmess = thing.GetEventmess();
```

## GetExtraInfo()

```crmscript theme={null}
Integer GetExtraInfo()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Extra information (area ID for prototype rebuild, etc).

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer extraInfo = thing.GetExtraInfo();
```

## GetOwner()

```crmscript theme={null}
Integer GetOwner()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - 0, 0, group\_id, assoc id (see over).

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer owner = thing.GetOwner();
```

## GetRegistered()

```crmscript theme={null}
DateTime GetRegistered()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Registered when.

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
DateTime registered = thing.GetRegistered();
```

## GetScope()

```crmscript theme={null}
Integer GetScope()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - See \<xref href="CRMScript.NetServer.SystemEventScope" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer scope = thing.GetScope();
```

## GetSystemEventId()

```crmscript theme={null}
Integer GetSystemEventId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer systemEventId = thing.GetSystemEventId();
```

## GetUpdatedCount()

```crmscript theme={null}
Integer GetUpdatedCount()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of updates made to this record.

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer updatedCount = thing.GetUpdatedCount();
```

## SetActivatedBy(NSAssociate)

```crmscript theme={null}
Void SetActivatedBy(NSAssociate activatedBy)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
NSAssociate activatedBy;
thing.SetActivatedBy(activatedBy);
```

## SetEta(DateTime)

```crmscript theme={null}
Void SetEta(DateTime eta)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
DateTime eta;
thing.SetEta(eta);
```

## SetEventkey(String)

Event key, predefined in code

```crmscript theme={null}
Void SetEventkey(String eventkey)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
String eventkey;
thing.SetEventkey(eventkey);
```

## SetEventmess(String)

```crmscript theme={null}
Void SetEventmess(String eventmess)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
String eventmess;
thing.SetEventmess(eventmess);
```

## SetExtraInfo(Integer)

```crmscript theme={null}
Void SetExtraInfo(Integer extraInfo)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer extraInfo;
thing.SetExtraInfo(extraInfo);
```

## SetOwner(Integer)

```crmscript theme={null}
Void SetOwner(Integer owner)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer owner;
thing.SetOwner(owner);
```

## SetRegistered(DateTime)

```crmscript theme={null}
Void SetRegistered(DateTime registered)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
DateTime registered;
thing.SetRegistered(registered);
```

## SetScope(Integer)

```crmscript theme={null}
Void SetScope(Integer scope)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer scope;
thing.SetScope(scope);
```

## SetSystemEventId(Integer)

```crmscript theme={null}
Void SetSystemEventId(Integer systemEventId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer systemEventId;
thing.SetSystemEventId(systemEventId);
```

## SetUpdatedCount(Integer)

```crmscript theme={null}
Void SetUpdatedCount(Integer updatedCount)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSSystemEventEntity thing;
Integer updatedCount;
thing.SetUpdatedCount(updatedCount);
```


## Related topics

- [NSConfigurationAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSConfigurationAgent.md)
- [Delete System Event Entity](/en/api/reference/restful/rest/systemevent/delete-system-event-entity.md)
- [Get System Event Entity](/en/api/reference/restful/rest/systemevent/get-system-event-entity.md)
- [Post System Event Entity](/en/api/reference/restful/rest/systemevent/post-system-event-entity.md)
- [Default System Event Entity](/en/api/reference/restful/rest/systemevent/default-system-event-entity.md)
- [Put System Event Entity](/en/api/reference/restful/rest/systemevent/put-system-event-entity.md)
