Class NSAppointment
Simple read-only appointment data.
Constructors
NSAppointment()
Initializes a new instance of the NSAppointment class.
Declaration
NSAppointment Methods
GetActiveDate()
Declaration
DateTime GetActiveDate() Examples
NSAppointment thing;
DateTime activeDate = thing.GetActiveDate();
Returns
| Type | Description |
| DateTime | The date to be used for searching and showing. |
GetAlarmLeadTime()
Declaration
TimeSpan GetAlarmLeadTime() Examples
NSAppointment thing;
TimeSpan alarmLeadTime = thing.GetAlarmLeadTime();
Returns
| Type | Description |
| TimeSpan | Alarm lead time. |
GetAlldayEvent()
Declaration
Integer GetAlldayEvent() Returns
| Type | Description |
| Integer | Is this an all day event? 0 = No, 1 = Yes. |
GetAppointmentId()
Declaration
Integer GetAppointmentId() Examples
NSAppointment thing;
Integer appointmentId = thing.GetAppointmentId();
Returns
| Type | Description |
| Integer | Primary key. |
GetAssignedBy()
Declaration
Integer GetAssignedBy() Examples
NSAppointment thing;
Integer assignedBy = thing.GetAssignedBy();
Returns
| Type | Description |
| Integer | Who (last) assigned this appointment to associate_id? |
GetAssignedByFullName()
Declaration
String GetAssignedByFullName() Examples
NSAppointment thing;
String assignedByFullName = thing.GetAssignedByFullName();
Returns
| Type | Description |
| String | The associate's culture formatted fullname (firstname, middleName and lastname). |
GetAssignmentStatus()
Declaration
Integer GetAssignmentStatus() Examples
NSAppointment thing;
Integer assignmentStatus = thing.GetAssignmentStatus();
Returns
| Type | Description |
| Integer | Status if this appointment is in the process of being assigned to someone else. |
GetAssociateFullName()
Declaration
String GetAssociateFullName() Examples
NSAppointment thing;
String associateFullName = thing.GetAssociateFullName();
Returns
| Type | Description |
| String | The owner of the appointment - the associate whose diary/checklist the appointment is in. |
GetAssociateId()
Declaration
Integer GetAssociateId() Examples
NSAppointment thing;
Integer associateId = thing.GetAssociateId();
Returns
| Type | Description |
| Integer | ID of associate whose diary the appointment is in, REQUIREd. |
GetAssociateName()
Declaration
String GetAssociateName() Examples
NSAppointment thing;
String associateName = thing.GetAssociateName();
Returns
| Type | Description |
| String | The associate's name. |
GetBookingType()
Declaration
Integer GetBookingType() Examples
NSAppointment thing;
Integer bookingType = thing.GetBookingType();
Returns
| Type | Description |
| Integer | The type of booking the appointment represents. |
GetCautionWarning()
Declaration
Integer GetCautionWarning() Examples
NSAppointment thing;
Integer cautionWarning = thing.GetCautionWarning();
Returns
| Type | Description |
| Integer | Status field to indicate appointments that have some sort of problem. See <xref href="CRMScript.NetServer.AppointmentCautionWarning" data-throw-if-not-resolved="false"></xref> |
GetColorIndex()
Declaration
Integer GetColorIndex() Examples
NSAppointment thing;
Integer colorIndex = thing.GetColorIndex();
Returns
| Type | Description |
| Integer | Appointment color, used only in Japanese versions. Western versions take colour from Task. See <xref href="CRMScript.NetServer.ColorIndex" data-throw-if-not-resolved="false"></xref>. |
GetCompleted()
Declaration
Integer GetCompleted() Examples
NSAppointment thing;
Integer completed = thing.GetCompleted();
Returns
| Type | Description |
| Integer | The Completed state. |
GetContactId()
Declaration
Integer GetContactId() Examples
NSAppointment thing;
Integer contactId = thing.GetContactId();
Returns
| Type | Description |
| Integer | Contact ID of owning contact, may be 0 |
GetContactName()
Declaration
String GetContactName() Examples
NSAppointment thing;
String contactName = thing.GetContactName();
Returns
| Type | Description |
| String | The contact associated with the appointment. |
GetCreatedBy()
Declaration
String GetCreatedBy() Examples
NSAppointment thing;
String createdBy = thing.GetCreatedBy();
Returns
| Type | Description |
| String | Who created the appointment. Associate name. |
GetCreatedByAssociateId()
Declaration
Integer GetCreatedByAssociateId() Examples
NSAppointment thing;
Integer createdByAssociateId = thing.GetCreatedByAssociateId();
Returns
| Type | Description |
| Integer | ID of the associate that created the appointment. |
GetCreatedByFullName()
Declaration
String GetCreatedByFullName() Examples
NSAppointment thing;
String createdByFullName = thing.GetCreatedByFullName();
Returns
| Type | Description |
| String | Who created the appointment. Full name. |
GetCreatedDate()
Declaration
DateTime GetCreatedDate() Examples
NSAppointment thing;
DateTime createdDate = thing.GetCreatedDate();
Returns
| Type | Description |
| DateTime | Appointment creation date. |
GetDescription()
Declaration
String GetDescription() Examples
NSAppointment thing;
String description = thing.GetDescription();
Returns
| Type | Description |
| String | The appointment's textbox; holds a descriptive text about the appointment. Filled out by the user. |
GetEndDate()
Declaration
DateTime GetEndDate() Examples
NSAppointment thing;
DateTime endDate = thing.GetEndDate();
Returns
| Type | Description |
| DateTime | Date + end time planned. |
GetFreeBusy()
Declaration
Integer GetFreeBusy() Returns
| Type | Description |
| Integer | What kind of time is this? 0 = Busy, 1 = Free. |
GetHasAlarm()
Declaration
Bool GetHasAlarm() Examples
NSAppointment thing;
Bool hasAlarm = thing.GetHasAlarm();
Returns
| Type | Description |
| Bool | Does this appointment have an alarm. |
GetInvitationStatus()
Declaration
Integer GetInvitationStatus() Examples
NSAppointment thing;
Integer invitationStatus = thing.GetInvitationStatus();
Returns
| Type | Description |
| Integer | Status if this appointment represents an invitation. |
GetIsAlldayEvent()
Declaration
Bool GetIsAlldayEvent() Examples
NSAppointment thing;
Bool isAlldayEvent = thing.GetIsAlldayEvent();
Returns
| Type | Description |
| Bool | True if all day event. |
GetIsBooking()
Declaration
Bool GetIsBooking() Examples
NSAppointment thing;
Bool isBooking = thing.GetIsBooking();
Returns
| Type | Description |
| Bool | True if this appointment is a booking. |
GetIsBookingMain()
Declaration
Bool GetIsBookingMain() Examples
NSAppointment thing;
Bool isBookingMain = thing.GetIsBookingMain();
Returns
| Type | Description |
| Bool | True if this appointment is a booking and current associate is the owner; False if it is a booking and current associate is a participant. |
GetIsFree()
Declaration
Bool GetIsFree() Examples
NSAppointment thing;
Bool isFree = thing.GetIsFree();
Returns
| Type | Description |
| Bool | True if free, false if busy. |
GetIsPublished()
Declaration
Bool GetIsPublished() Examples
NSAppointment thing;
Bool isPublished = thing.GetIsPublished();
Returns
| Type | Description |
| Bool | True if appointment have an entry in published table. |
GetIsRecurrence()
Declaration
Bool GetIsRecurrence() Examples
NSAppointment thing;
Bool isRecurrence = thing.GetIsRecurrence();
Returns
| Type | Description |
| Bool | True if the appointment is part of a recurring pattern. |
GetJoinVideomeetUrl()
Declaration
String GetJoinVideomeetUrl() Examples
NSAppointment thing;
String joinVideomeetUrl = thing.GetJoinVideomeetUrl();
Returns
| Type | Description |
| String | Blank when not a video meeting. Filled with Join Meeting URL when created. |
GetLocation()
Declaration
String GetLocation() Examples
NSAppointment thing;
String location = thing.GetLocation();
Returns
| Type | Description |
| String | Location for appointment, defaulted from invited resource of type place and other rules, but you can write anything you want here. |
GetMotherId()
Declaration
Integer GetMotherId() Examples
NSAppointment thing;
Integer motherId = thing.GetMotherId();
Returns
| Type | Description |
| Integer | ID of mother appointment; self if booking master, master ID if booking slave, 0 if normal appointment. However, if 0 and assoc_id != reg_id then this is an assigned appointment, indicated vt type = kBooking. |
GetPersonFullName()
Declaration
String GetPersonFullName() Examples
NSAppointment thing;
String personFullName = thing.GetPersonFullName();
Returns
| Type | Description |
| String | The full name of the person this appointment belongs to. |
GetPersonId()
Declaration
Integer GetPersonId() Examples
NSAppointment thing;
Integer personId = thing.GetPersonId();
Returns
| Type | Description |
| Integer | Person ID of person the appointment is with, may be 0 |
GetPriorityId()
Declaration
Integer GetPriorityId() Examples
NSAppointment thing;
Integer priorityId = thing.GetPriorityId();
Returns
| Type | Description |
| Integer | Link to priority list. |
GetPriorityName()
Declaration
String GetPriorityName() Examples
NSAppointment thing;
String priorityName = thing.GetPriorityName();
Returns
| Type | Description |
| String | Name of the appointments priority. |
GetPrivate()
Declaration
Integer GetPrivate() Examples
NSAppointment thing;
Integer private = thing.GetPrivate();
Returns
| Type | Description |
| AppointmentPrivate | De-normalization of visibleFor status. See <xref href="CRMScript.NetServer.AppointmentPrivate" data-throw-if-not-resolved="false"></xref> |
GetProjectId()
Declaration
Integer GetProjectId() Examples
NSAppointment thing;
Integer projectId = thing.GetProjectId();
Returns
| Type | Description |
| Integer | ID of project referred to, may be 0 |
GetProjectName()
Declaration
String GetProjectName() Examples
NSAppointment thing;
String projectName = thing.GetProjectName();
Returns
| Type | Description |
| String | The name of the project this appointment belong to. Blank if no project is connected. |
GetRecurringEndDate()
Declaration
DateTime GetRecurringEndDate() Examples
NSAppointment thing;
DateTime recurringEndDate = thing.GetRecurringEndDate();
Returns
| Type | Description |
| DateTime |
GetRecurringPattern()
Declaration
Integer GetRecurringPattern() Examples
NSAppointment thing;
Integer recurringPattern = thing.GetRecurringPattern();
Returns
| Type | Description |
| Integer | See <xref href="CRMScript.NetServer.RecurrencePattern" data-throw-if-not-resolved="false"></xref> |
GetRecurringStartDate()
Declaration
DateTime GetRecurringStartDate() Examples
NSAppointment thing;
DateTime recurringStartDate = thing.GetRecurringStartDate();
Returns
| Type | Description |
| DateTime |
GetRejectReason()
Declaration
String GetRejectReason() Examples
NSAppointment thing;
String rejectReason = thing.GetRejectReason();
Returns
| Type | Description |
| String | Why was this booking or assignment rejected, the RejectReason list is a source of suggestions but you can write anything here. |
GetSaleId()
Declaration
Integer GetSaleId() Examples
NSAppointment thing;
Integer saleId = thing.GetSaleId();
Returns
| Type | Description |
| Integer | Owning sale, if any (may be 0). |
GetSaleName()
Declaration
String GetSaleName() Examples
NSAppointment thing;
String saleName = thing.GetSaleName();
Returns
| Type | Description |
| String | Heading of Owning sale, if any. (may be blank). |
GetStartDate()
Declaration
DateTime GetStartDate() Examples
NSAppointment thing;
DateTime startDate = thing.GetStartDate();
Returns
| Type | Description |
| DateTime | date + start time planned. |
GetTask()
Declaration
String GetTask() Examples
NSAppointment thing;
String task = thing.GetTask();
Returns
| Type | Description |
| String |
GetTaskType()
Declaration
Integer GetTaskType() Examples
NSAppointment thing;
Integer taskType = thing.GetTaskType();
Returns
| Type | Description |
| Integer | The different task types of the appointment, if the activity is an appointment, task, phone. See <xref href="CRMScript.NetServer.TaskType" data-throw-if-not-resolved="false"></xref> |
GetType()
Declaration
Integer GetType() Examples
NSAppointment thing;
Integer type = thing.GetType();
Returns
| Type | Description |
| Integer | The different types of appointment, if the appointment is supposed to be shown in the diary or checklist, or if it's a document. |
SetActiveDate(DateTime)
Declaration
Void SetActiveDate(DateTime activeDate) Examples
NSAppointment thing;
DateTime activeDate;
thing.SetActiveDate(activeDate);
Parameters
| Type | Name | Description |
| DateTime | activeDate | The date to be used for searching and showing. |
Returns
| Type | Description |
| Void |
SetAlarmLeadTime(TimeSpan)
Declaration
Void SetAlarmLeadTime(TimeSpan alarmLeadTime) Examples
NSAppointment thing;
TimeSpan alarmLeadTime;
thing.SetAlarmLeadTime(alarmLeadTime);
Parameters
| Type | Name | Description |
| TimeSpan | alarmLeadTime | Alarm lead time. |
Returns
| Type | Description |
| Void |
SetAlldayEvent(Integer)
Declaration
Void SetAlldayEvent(Integer allDayEvent) Parameters
| Type | Name | Description |
| Integer | allDayEvent | Is this an all day event? 0 = No, 1 = Yes. |
Returns
| Type | Description |
| Void |
SetAppointmentId(Integer)
Declaration
Void SetAppointmentId(Integer appointmentId) Examples
NSAppointment thing;
Integer appointmentId;
thing.SetAppointmentId(appointmentId);
Parameters
| Type | Name | Description |
| Integer | appointmentId | Primary key. |
Returns
| Type | Description |
| Void |
SetAssignedBy(Integer)
Declaration
Void SetAssignedBy(Integer assignedBy) Examples
NSAppointment thing;
Integer assignedBy;
thing.SetAssignedBy(assignedBy);
Parameters
| Type | Name | Description |
| Integer | assignedBy | Who (last) assigned this appointment to associate_id? |
Returns
| Type | Description |
| Void |
SetAssignedByFullName(String)
Declaration
Void SetAssignedByFullName(String assignedByFullName) Examples
NSAppointment thing;
String assignedByFullName;
thing.SetAssignedByFullName(assignedByFullName);
Parameters
| Type | Name | Description |
| String | assignedByFullName | The associate's culture formatted fullname (firstname, middleName and lastname). |
Returns
| Type | Description |
| Void |
SetAssignmentStatus(Integer)
Declaration
Void SetAssignmentStatus(Integer assignmentStatus) Examples
NSAppointment thing;
Integer assignmentStatus;
thing.SetAssignmentStatus(assignmentStatus);
Parameters
| Type | Name | Description |
| Integer | assignmentStatus | Status if this appointment is in the process of being assigned to someone else. See <xref href="CRMScript.NetServer.AssignmentStatus" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetAssociateFullName(String)
Declaration
Void SetAssociateFullName(String associateFullName) Examples
NSAppointment thing;
String associateFullName;
thing.SetAssociateFullName(associateFullName);
Parameters
| Type | Name | Description |
| String | associateFullName | The owner of the appointment - the associate whose diary/checklist the appointment is in. |
Returns
| Type | Description |
| Void |
SetAssociateId(Integer)
Declaration
Void SetAssociateId(Integer associateId) Examples
NSAppointment thing;
Integer associateId;
thing.SetAssociateId(associateId);
Parameters
| Type | Name | Description |
| Integer | associateId | ID of associate whose diary the appointment is in, REQUIREd. |
Returns
| Type | Description |
| Void |
SetAssociateName(String)
Declaration
Void SetAssociateName(String associateName) Examples
NSAppointment thing;
String associateName;
thing.SetAssociateName(associateName);
Parameters
| Type | Name | Description |
| String | associateName | The associate's name. |
Returns
| Type | Description |
| Void |
SetBookingType(Integer)
Declaration
Void SetBookingType(Integer bookingType) Examples
NSAppointment thing;
Integer bookingType;
thing.SetBookingType(bookingType);
Parameters
| Type | Name | Description |
| Integer | bookingType | The type of booking the appointment represents. See <xref href="CRMScript.NetServer.BookingType" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetCautionWarning(Integer)
Declaration
Void SetCautionWarning(Integer cautionWarning) Examples
NSAppointment thing;
Integer cautionWarning;
thing.SetCautionWarning(cautionWarning);
Parameters
| Type | Name | Description |
| Integer | cautionWarning | Status field to indicate appointments that have some sort of problem. See <xref href="CRMScript.NetServer.AppointmentCautionWarning" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetColorIndex(Integer)
Declaration
Void SetColorIndex(Integer colorIndex) Examples
NSAppointment thing;
Integer colorIndex;
thing.SetColorIndex(colorIndex);
Parameters
| Type | Name | Description |
| Integer | colorIndex | Appointment colour, used only in Japanese versions. Western versions take colour from Task. See <xref href="CRMScript.NetServer.ColorIndex" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetCompleted(Integer)
Declaration
Void SetCompleted(Integer completed) Examples
NSAppointment thing;
Integer completed;
thing.SetCompleted(completed);
Parameters
| Type | Name | Description |
| Integer | completed | The Completed state. See <xref href="CRMScript.NetServer.ActivityStatus" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetContactId(Integer)
Declaration
Void SetContactId(Integer contactId) Examples
NSAppointment thing;
Integer contactId;
thing.SetContactId(contactId);
Parameters
| Type | Name | Description |
| Integer | contactId | Contact ID of owning contact, may be 0 |
Returns
| Type | Description |
| Void |
SetContactName(String)
Declaration
Void SetContactName(String contactName) Examples
NSAppointment thing;
String contactName;
thing.SetContactName(contactName);
Parameters
| Type | Name | Description |
| String | contactName | The contact associated with the appointment. |
Returns
| Type | Description |
| Void |
SetCreatedBy(String)
Declaration
Void SetCreatedBy(String createdBy) Examples
NSAppointment thing;
String createdBy;
thing.SetCreatedBy(createdBy);
Parameters
| Type | Name | Description |
| String | createdBy | Who created the appointment. Associate name. |
Returns
| Type | Description |
| Void |
SetCreatedByAssociateId(Integer)
Declaration
Void SetCreatedByAssociateId(Integer createdByAssociateId) Examples
NSAppointment thing;
Integer createdByAssociateId;
thing.SetCreatedByAssociateId(createdByAssociateId);
Parameters
| Type | Name | Description |
| Integer | createdByAssociateId | ID of the associate that created the appointment. |
Returns
| Type | Description |
| Void |
SetCreatedByFullName(String)
Declaration
Void SetCreatedByFullName(String createdByFullName) Examples
NSAppointment thing;
String createdByFullName;
thing.SetCreatedByFullName(createdByFullName);
Parameters
| Type | Name | Description |
| String | createdByFullName | Who created the appointment. Full name. |
Returns
| Type | Description |
| Void |
SetCreatedDate(DateTime)
Declaration
Void SetCreatedDate(DateTime createdDate) Examples
NSAppointment thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);
Parameters
| Type | Name | Description |
| DateTime | createdDate | Appointment creation date. |
Returns
| Type | Description |
| Void |
SetDescription(String)
Declaration
Void SetDescription(String description) Examples
NSAppointment thing;
String description;
thing.SetDescription(description);
Parameters
| Type | Name | Description |
| String | description | The appointment's textbox; holds a descriptive text about the appointment. Filled out by the user. |
Returns
| Type | Description |
| Void |
SetEndDate(DateTime)
Declaration
Void SetEndDate(DateTime endDate) Examples
NSAppointment thing;
DateTime endDate;
thing.SetEndDate(endDate);
Parameters
| Type | Name | Description |
| DateTime | endDate | Date + end time planned. |
Returns
| Type | Description |
| Void |
SetFreeBusy(Integer)
Declaration
Void SetFreeBusy(Integer freeBusy) Parameters
| Type | Name | Description |
| Integer | freeBusy | What kind of time is this? 0 = Busy, 1 = Free. |
Returns
| Type | Description |
| Void |
SetHasAlarm(Bool)
Declaration
Void SetHasAlarm(Bool hasAlarm) Examples
NSAppointment thing;
Bool hasAlarm;
thing.SetHasAlarm(hasAlarm);
Parameters
| Type | Name | Description |
| Bool | hasAlarm | Does this appointment have an alarm? |
Returns
| Type | Description |
| Void |
SetInvitationStatus(Integer)
Declaration
Void SetInvitationStatus(Integer invitationStatus) Examples
NSAppointment thing;
Integer invitationStatus;
thing.SetInvitationStatus(invitationStatus);
Parameters
| Type | Name | Description |
| Integer | invitationStatus | Status if this appointment represents an invitation. See <xref href="CRMScript.NetServer.InvitationStatus" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetIsAlldayEvent(Bool)
Declaration
Void SetIsAlldayEvent(Bool isAlldayEvent) Examples
NSAppointment thing;
Bool isAlldayEvent;
thing.SetIsAlldayEvent(isAlldayEvent);
Parameters
| Type | Name | Description |
| Bool | isAlldayEvent | True if all day event. |
Returns
| Type | Description |
| Void |
SetIsBooking(Bool)
Declaration
Void SetIsBooking(Bool isBooking) Examples
NSAppointment thing;
Bool isBooking;
thing.SetIsBooking(isBooking);
Parameters
| Type | Name | Description |
| Bool | isBooking | True if this appointment is a booking. |
Returns
| Type | Description |
| Void |
SetIsBookingMain(Bool)
Declaration
Void SetIsBookingMain(Bool isBookingMain) Examples
NSAppointment thing;
Bool isBookingMain;
thing.SetIsBookingMain(isBookingMain);
Parameters
| Type | Name | Description |
| Bool | isBookingMain | True if this appointment is a booking and current associate is the owner. False if it is a booking and current associate is a participant. |
Returns
| Type | Description |
| Void |
SetIsFree(Bool)
Declaration
Void SetIsFree(Bool isFree) Examples
NSAppointment thing;
Bool isFree;
thing.SetIsFree(isFree);
Parameters
| Type | Name | Description |
| Bool | isFree | True if free, false if busy. |
Returns
| Type | Description |
| Void |
SetIsPublished(Bool)
Declaration
Void SetIsPublished(Bool isPublished) Examples
NSAppointment thing;
Bool isPublished;
thing.SetIsPublished(isPublished);
Parameters
| Type | Name | Description |
| Bool | isPublished | True if appointment have an entry in published table. |
Returns
| Type | Description |
| Void |
SetIsRecurrence(Bool)
Declaration
Void SetIsRecurrence(Bool isRecurrence) Examples
NSAppointment thing;
Bool isRecurrence;
thing.SetIsRecurrence(isRecurrence);
Parameters
| Type | Name | Description |
| Bool | isRecurrence | True if the appointment is part of a recurring pattern. |
Returns
| Type | Description |
| Void |
SetJoinVideomeetUrl(String)
Declaration
Void SetJoinVideomeetUrl(String joinVideomeetUrl) Examples
NSAppointment thing;
String joinVideomeetUrl;
thing.SetJoinVideomeetUrl(joinVideomeetUrl);
Parameters
| Type | Name | Description |
| String | joinVideomeetUrl | Blank when not a video meeting. Filled with Join Meeting URL when created. |
Returns
| Type | Description |
| Void |
SetLocation(String)
Declaration
Void SetLocation(String location) Examples
NSAppointment thing;
String location;
thing.SetLocation(location);
Parameters
| Type | Name | Description |
| String | location | Location for appointment, defaulted from invited resource of type place and other rules, but you can write anything you want here. |
Returns
| Type | Description |
| Void |
SetMotherId(Integer)
Declaration
Void SetMotherId(Integer motherId) Examples
NSAppointment thing;
Integer motherId;
thing.SetMotherId(motherId);
Parameters
| Type | Name | Description |
| Integer | motherId | ID of mother appointment; self if booking master, master ID if booking slave, 0 if normal appointment. However, if 0 and assoc_id != reg_id then this is an assigned appointment, indicated vt type = kBooking. |
Returns
| Type | Description |
| Void |
SetPersonFullName(String)
Declaration
Void SetPersonFullName(String personFullName) Examples
NSAppointment thing;
String personFullName;
thing.SetPersonFullName(personFullName);
Parameters
| Type | Name | Description |
| String | personFullName | The full name of the person this appointment belongs to. |
Returns
| Type | Description |
| Void |
SetPersonId(Integer)
Declaration
Void SetPersonId(Integer personId) Examples
NSAppointment thing;
Integer personId;
thing.SetPersonId(personId);
Parameters
| Type | Name | Description |
| Integer | personId | Person ID of person the appointment is with, may be 0 |
Returns
| Type | Description |
| Void |
SetPriorityId(Integer)
Declaration
Void SetPriorityId(Integer priorityId) Examples
NSAppointment thing;
Integer priorityId;
thing.SetPriorityId(priorityId);
Parameters
| Type | Name | Description |
| Integer | priorityId | Link to priority list. |
Returns
| Type | Description |
| Void |
SetPriorityName(String)
Declaration
Void SetPriorityName(String priorityName) Examples
NSAppointment thing;
String priorityName;
thing.SetPriorityName(priorityName);
Parameters
| Type | Name | Description |
| String | priorityName | Name of the appointments priority. |
Returns
| Type | Description |
| Void |
SetPrivate(Integer)
Obsolete, but still maintained field for appointment privacy.
Declaration
Void SetPrivate(Integer private) Examples
NSAppointment thing;
Integer private;
thing.SetPrivate(private);
Parameters
| Type | Name | Description |
| Integer | private | de-normalization of visibleFor status. See <xref href="CRMScript.NetServer.AppointmentPrivate" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetProjectId(Integer)
Declaration
Void SetProjectId(Integer projectId) Examples
NSAppointment thing;
Integer projectId;
thing.SetProjectId(projectId);
Parameters
| Type | Name | Description |
| Integer | projectId | ID of project referred to, may be 0 |
Returns
| Type | Description |
| Void |
SetProjectName(String)
Declaration
Void SetProjectName(String projectName) Examples
NSAppointment thing;
String projectName;
thing.SetProjectName(projectName);
Parameters
| Type | Name | Description |
| String | projectName | The name of the project this appointment belong to. Blank if no project is connected. |
Returns
| Type | Description |
| Void |
SetRecurringEndDate(DateTime)
Declaration
Void SetRecurringEndDate(DateTime recurringEndDate) Examples
NSAppointment thing;
DateTime recurringEndDate;
thing.SetRecurringEndDate(recurringEndDate);
Parameters
| Type | Name | Description |
| DateTime | recurringEndDate |
Returns
| Type | Description |
| Void |
SetRecurringPattern(Integer)
Declaration
Void SetRecurringPattern(Integer pattern) Examples
NSAppointment thing;
Integer pattern;
thing.SetRecurringPattern(pattern);
Parameters
| Type | Name | Description |
| Integer | pattern | See <xref href="CRMScript.NetServer.RecurrencePattern" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetRecurringStartDate(DateTime)
Declaration
Void SetRecurringStartDate(DateTime recurringStartDate) Examples
NSAppointment thing;
DateTime recurringStartDate;
thing.SetRecurringStartDate(recurringStartDate);
Parameters
| Type | Name | Description |
| DateTime | recurringStartDate |
Returns
| Type | Description |
| Void |
SetRejectReason(String)
Declaration
Void SetRejectReason(String rejectReason) Examples
NSAppointment thing;
String rejectReason;
thing.SetRejectReason(rejectReason);
Parameters
| Type | Name | Description |
| String | rejectReason | Why was this booking or assignment rejected, the RejectReason list is a source of suggestions but you can write anything here. |
Returns
| Type | Description |
| Void |
SetSaleId(Integer)
Declaration
Void SetSaleId(Integer saleId) Examples
NSAppointment thing;
Integer saleId;
thing.SetSaleId(saleId);
Parameters
| Type | Name | Description |
| Integer | saleId | Owning sale, if any (may be 0). |
Returns
| Type | Description |
| Void |
SetSaleName(String)
Declaration
Void SetSaleName(String saleName) Examples
NSAppointment thing;
String saleName;
thing.SetSaleName(saleName);
Parameters
| Type | Name | Description |
| String | saleName | Heading of Owning sale, if any. (may be blank). |
Returns
| Type | Description |
| Void |
SetStartDate(DateTime)
Declaration
Void SetStartDate(DateTime startDate) Examples
NSAppointment thing;
DateTime startDate;
thing.SetStartDate(startDate);
Parameters
| Type | Name | Description |
| DateTime | startDate | date + start time planned. |
Returns
| Type | Description |
| Void |
SetTask(String)
Declaration
Void SetTask(String task) Examples
NSAppointment thing;
String task;
thing.SetTask(task);
Parameters
| Type | Name | Description |
| String | task | Task comprises the different types of activities, such as Phone call or Meeting. |
Returns
| Type | Description |
| Void |
SetTaskType(Integer)
Declaration
Void SetTaskType(Integer taskType) Examples
NSAppointment thing;
Integer taskType;
thing.SetTaskType(taskType);
Parameters
| Type | Name | Description |
| Integer | taskType | The different task types of the appointment, if the activity is an appointment, task, phone. See <xref href="CRMScript.NetServer.TaskType" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetType(Integer)
Declaration
Void SetType(Integer type) Examples
NSAppointment thing;
Integer type;
thing.SetType(type);
Parameters
| Type | Name | Description |
| Integer | type | The different types of appointment, if the appointment is supposed to be shown in the diary or checklist, or if it's a document. See <xref href="CRMScript.NetServer.AppointmentType" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |