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

# NSParticipantInfo

> Represents an appointment participant.

Represents an appointment participant.

## Constructors

### NSParticipantInfo()

```crmscript theme={null}
NSParticipantInfo
```

Initializes a new instance of the NSParticipantInfo class.

## Methods

## GetAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Associate ID of the participant if the participant is an associate (or resource).

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer associateId = thing.GetAssociateId();
```

## GetContactId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Contact ID of the participant if the participant is an associate or person.

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer contactId = thing.GetContactId();
```

## GetEmailId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The email ID of the email belonging to the appointment record belonging to this person.

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer emailId = thing.GetEmailId();
```

## GetInvitationStatus()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The participant status for the appointment.

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer invitationStatus = thing.GetInvitationStatus();
```

## GetPersonId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Person ID of the participant if the participant is a person.

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer personId = thing.GetPersonId();
```

## GetSendEmail()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - True if the participant has been sent an email or should be sent an email.

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Bool sendEmail = thing.GetSendEmail();
```

## SetAssociateId(Integer)

```crmscript theme={null}
Void SetAssociateId(Integer associateId)
```

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

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer associateId;
thing.SetAssociateId(associateId);
```

## SetContactId(Integer)

```crmscript theme={null}
Void SetContactId(Integer contactId)
```

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

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer contactId;
thing.SetContactId(contactId);
```

## SetEmailId(Integer)

```crmscript theme={null}
Void SetEmailId(Integer emailId)
```

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

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer emailId;
thing.SetEmailId(emailId);
```

## SetInvitationStatus(Integer)

```crmscript theme={null}
Void SetInvitationStatus(Integer invitationStatus)
```

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

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer invitationStatus;
thing.SetInvitationStatus(invitationStatus);
```

## SetPersonId(Integer)

```crmscript theme={null}
Void SetPersonId(Integer personId)
```

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

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Integer personId;
thing.SetPersonId(personId);
```

## SetSendEmail(Bool)

```crmscript theme={null}
Void SetSendEmail(Bool sendEmail)
```

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

**Example:**

```crmscript theme={null}
NSParticipantInfo thing;
Bool sendEmail;
thing.SetSendEmail(sendEmail);
```


## Related topics

- [NSAppointmentEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSAppointmentEntity.md)
- [Resources](/en/automation/crmscript/howto/diary/book-resource.md)
- [Get Participant Info From Email Address](/en/api/reference/restful/agent/email_agent/get-participant-info-from-email-address.md)
- [SuperOffice.WebApi.Data.ParticipantInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.ParticipantInfo.md)
- [SuperOffice.WebApi.Data.EMail GetParticipantInfoFromEmailAddressRequest](/en/api/reference/webapi/SuperOffice.WebApi.Data.EMail_GetParticipantInfoFromEmailAddressRequest.md)
- [SuperOffice.WebApi.Agents.EMailAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.EMailAgent.md)
