> ## 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.

# NSProjectEventEntity

> The ProjectEvent Service. The service implements all services working with the ProjectEvent object

The ProjectEvent Service. The service implements all services working with the ProjectEvent object

## Constructors

### NSProjectEventEntity()

```crmscript theme={null}
NSProjectEventEntity
```

Initializes a new instance of the NSProjectEventEntity class.

## Methods

## GetCreatedBy()

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

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that created the project event.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();
```

## GetCreatedDate()

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

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime createdDate = thing.GetCreatedDate();
```

## GetEnabled()

```crmscript theme={null}
Bool GetEnabled()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is the event enabled.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool enabled = thing.GetEnabled();
```

## GetEventDate()

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

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Date of the event; publishing/visibility dates are in Publish, and restrictions are in AudienceVisibility.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime eventDate = thing.GetEventDate();
```

## GetId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - ID of the external event.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer id = thing.GetId();
```

## GetIsPublished()

```crmscript theme={null}
Bool GetIsPublished()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Publish to external users? When true, the event/project information is visible to external users through the Audience portal. You can control the publish duration using the PublishFrom/PublishTo properties.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isPublished = thing.GetIsPublished();
```

## GetIsVisibleForCategories()

```crmscript theme={null}
Bool GetIsVisibleForCategories()
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isVisibleForCategories = thing.GetIsVisibleForCategories();
```

## GetIsVisibleForMembers()

```crmscript theme={null}
Bool GetIsVisibleForMembers()
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isVisibleForMembers = thing.GetIsVisibleForMembers();
```

## GetIsVisibleForPersonInterests()

```crmscript theme={null}
Bool GetIsVisibleForPersonInterests()
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isVisibleForPersonInterests = thing.GetIsVisibleForPersonInterests();
```

## GetProjectEventId()

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

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer projectEventId = thing.GetProjectEventId();
```

## GetProjectId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The projectId for the project this projectEvent belongs to.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer projectId = thing.GetProjectId();
```

## GetPublishFrom()

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

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Publication valid from (inclusive).

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime publishFrom = thing.GetPublishFrom();
```

## GetPublishTo()

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

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Publication valid to (inclusive).

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime publishTo = thing.GetPublishTo();
```

## GetPublishType()

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

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer publishType = thing.GetPublishType();
```

## GetSignOff()

```crmscript theme={null}
Bool GetSignOff()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is Sign Off functionality enabled?

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOff = thing.GetSignOff();
```

## GetSignOffConfirmationText()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Text shown as confirmation text before accepting sign off.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOffConfirmationText = thing.GetSignOffConfirmationText();
```

## GetSignOffTaskEnable()

```crmscript theme={null}
Bool GetSignOffTaskEnable()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If not 0, a task should be created when the external user Signs Off an event.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOffTaskEnable = thing.GetSignOffTaskEnable();
```

## GetSignOffTaskId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - If not 0, sign off should cause an Activity of this type to be registered.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer signOffTaskId = thing.GetSignOffTaskId();
```

## GetSignOffText()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Default text for the activity created when signing off.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOffText = thing.GetSignOffText();
```

## GetSignOffTriggersAssign()

```crmscript theme={null}
Bool GetSignOffTriggersAssign()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If 1, the SignOff task should be created as an Assigned task, triggering the invitation dialog.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOffTriggersAssign = thing.GetSignOffTriggersAssign();
```

## GetSignOn()

```crmscript theme={null}
Bool GetSignOn()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is Sign On functionality enabled.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOn = thing.GetSignOn();
```

## GetSignOnConfirmationText()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Text shown as confirmation text before accepting sign on.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOnConfirmationText = thing.GetSignOnConfirmationText();
```

## GetSignOnTaskEnable()

```crmscript theme={null}
Bool GetSignOnTaskEnable()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If not 0, a task should be created when the external user Signs On to an event.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOnTaskEnable = thing.GetSignOnTaskEnable();
```

## GetSignOnTaskId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - If not 0, sign on should cause an Activity of this type to be registered.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer signOnTaskId = thing.GetSignOnTaskId();
```

## GetSignOnText()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Default text for the activity created when signing on.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOnText = thing.GetSignOnText();
```

## GetSignOnTriggersAssign()

```crmscript theme={null}
Bool GetSignOnTriggersAssign()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - If 1, the SignOn task should be created as an Assigned task, triggering the invitation dialog.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOnTriggersAssign = thing.GetSignOnTriggersAssign();
```

## GetUpdatedBy()

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

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that last updated the project event.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();
```

## GetUpdatedDate()

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

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime updatedDate = thing.GetUpdatedDate();
```

## GetVisibleForCategories()

```crmscript theme={null}
NSMDOListItem[] GetVisibleForCategories()
```

**Returns:** [CRMScript.NetServer.NSMDOListItem](CRMScript.NetServer.NSMDOListItem)\[] - Array of categories that the event is visible for. MDO Table category.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSMDOListItem[] visibleForCategories = thing.GetVisibleForCategories();
```

## GetVisibleForPersonInterests()

```crmscript theme={null}
NSMDOListItem[] GetVisibleForPersonInterests()
```

**Returns:** [CRMScript.NetServer.NSMDOListItem](CRMScript.NetServer.NSMDOListItem)\[] - Array of person interests (MDO table persint) that this event is visible for.

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSMDOListItem[] visibleForPersonInterests = thing.GetVisibleForPersonInterests();
```

## SetCreatedBy(NSAssociate)

```crmscript theme={null}
Void SetCreatedBy(NSAssociate createdBy)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);
```

## SetCreatedDate(DateTime)

```crmscript theme={null}
Void SetCreatedDate(DateTime createdDate)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);
```

## SetEnabled(Bool)

```crmscript theme={null}
Void SetEnabled(Bool enabled)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool enabled;
thing.SetEnabled(enabled);
```

## SetEventDate(DateTime)

```crmscript theme={null}
Void SetEventDate(DateTime eventDate)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime eventDate;
thing.SetEventDate(eventDate);
```

## SetId(Integer)

```crmscript theme={null}
Void SetId(Integer id)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer id;
thing.SetId(id);
```

## SetIsPublished(Bool)

```crmscript theme={null}
Void SetIsPublished(Bool isPublished)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isPublished;
thing.SetIsPublished(isPublished);
```

## SetIsVisibleForCategories(Bool)

```crmscript theme={null}
Void SetIsVisibleForCategories(Bool isVisibleForCategories)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isVisibleForCategories;
thing.SetIsVisibleForCategories(isVisibleForCategories);
```

## SetIsVisibleForMembers(Bool)

```crmscript theme={null}
Void SetIsVisibleForMembers(Bool isVisibleForMembers)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isVisibleForMembers;
thing.SetIsVisibleForMembers(isVisibleForMembers);
```

## SetIsVisibleForPersonInterests(Bool)

```crmscript theme={null}
Void SetIsVisibleForPersonInterests(Bool isVisibleForPersonInterests)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool isVisibleForPersonInterests;
thing.SetIsVisibleForPersonInterests(isVisibleForPersonInterests);
```

## SetProjectEventId(Integer)

```crmscript theme={null}
Void SetProjectEventId(Integer projectEventId)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer projectEventId;
thing.SetProjectEventId(projectEventId);
```

## SetProjectId(Integer)

```crmscript theme={null}
Void SetProjectId(Integer projectId)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer projectId;
thing.SetProjectId(projectId);
```

## SetPublishFrom(DateTime)

```crmscript theme={null}
Void SetPublishFrom(DateTime publishFrom)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime publishFrom;
thing.SetPublishFrom(publishFrom);
```

## SetPublishTo(DateTime)

```crmscript theme={null}
Void SetPublishTo(DateTime publishTo)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime publishTo;
thing.SetPublishTo(publishTo);
```

## SetPublishType(Integer)

```crmscript theme={null}
Void SetPublishType(Integer publishType)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer publishType;
thing.SetPublishType(publishType);
```

## SetSignOff(Bool)

```crmscript theme={null}
Void SetSignOff(Bool signOff)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOff;
thing.SetSignOff(signOff);
```

## SetSignOffConfirmationText(String)

```crmscript theme={null}
Void SetSignOffConfirmationText(String signOffConfirmationText)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOffConfirmationText;
thing.SetSignOffConfirmationText(signOffConfirmationText);
```

## SetSignOffTaskEnable(Bool)

```crmscript theme={null}
Void SetSignOffTaskEnable(Bool signOffTaskEnable)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOffTaskEnable;
thing.SetSignOffTaskEnable(signOffTaskEnable);
```

## SetSignOffTaskId(Integer)

```crmscript theme={null}
Void SetSignOffTaskId(Integer signOffTaskId)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer signOffTaskId;
thing.SetSignOffTaskId(signOffTaskId);
```

## SetSignOffText(String)

```crmscript theme={null}
Void SetSignOffText(String signOffText)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOffText;
thing.SetSignOffText(signOffText);
```

## SetSignOffTriggersAssign(Bool)

```crmscript theme={null}
Void SetSignOffTriggersAssign(Bool signOffTriggersAssign)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOffTriggersAssign;
thing.SetSignOffTriggersAssign(signOffTriggersAssign);
```

## SetSignOn(Bool)

```crmscript theme={null}
Void SetSignOn(Bool signOn)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOn;
thing.SetSignOn(signOn);
```

## SetSignOnConfirmationText(String)

```crmscript theme={null}
Void SetSignOnConfirmationText(String signOnConfirmationText)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOnConfirmationText;
thing.SetSignOnConfirmationText(signOnConfirmationText);
```

## SetSignOnTaskEnable(Bool)

```crmscript theme={null}
Void SetSignOnTaskEnable(Bool signOnTaskEnable)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOnTaskEnable;
thing.SetSignOnTaskEnable(signOnTaskEnable);
```

## SetSignOnTaskId(Integer)

```crmscript theme={null}
Void SetSignOnTaskId(Integer signOnTaskId)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Integer signOnTaskId;
thing.SetSignOnTaskId(signOnTaskId);
```

## SetSignOnText(String)

```crmscript theme={null}
Void SetSignOnText(String signOnText)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
String signOnText;
thing.SetSignOnText(signOnText);
```

## SetSignOnTriggersAssign(Bool)

```crmscript theme={null}
Void SetSignOnTriggersAssign(Bool signOnTriggersAssign)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
Bool signOnTriggersAssign;
thing.SetSignOnTriggersAssign(signOnTriggersAssign);
```

## SetUpdatedBy(NSAssociate)

```crmscript theme={null}
Void SetUpdatedBy(NSAssociate updatedBy)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);
```

## SetUpdatedDate(DateTime)

```crmscript theme={null}
Void SetUpdatedDate(DateTime updatedDate)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
DateTime updatedDate;
thing.SetUpdatedDate(updatedDate);
```

## SetVisibleForCategories(NSMDOListItem\[])

```crmscript theme={null}
Void SetVisibleForCategories(NSMDOListItem[] visibleForCategories)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSMDOListItem[] visibleForCategories;
thing.SetVisibleForCategories(visibleForCategories);
```

## SetVisibleForPersonInterests(NSMDOListItem\[])

```crmscript theme={null}
Void SetVisibleForPersonInterests(NSMDOListItem[] visibleForPersonInterests)
```

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

**Example:**

```crmscript theme={null}
NSProjectEventEntity thing;
NSMDOListItem[] visibleForPersonInterests;
thing.SetVisibleForPersonInterests(visibleForPersonInterests);
```


## Related topics

- [NSProjectAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSProjectAgent.md)
- [Delete Project Event Entity](/en/api/reference/restful/agent/project_agent/delete-project-event-entity.md)
- [Save Project Event Entity](/en/api/reference/restful/agent/project_agent/save-project-event-entity.md)
- [Get Project Event Entity](/en/api/reference/restful/agent/project_agent/get-project-event-entity.md)
- [Get Project Event Entity From Project Id](/en/api/reference/restful/agent/project_agent/get-project-event-entity-from-project-id.md)
- [Delete Project Event Entity From Project Id](/en/api/reference/restful/agent/project_agent/delete-project-event-entity-from-project-id.md)
