Class NSPerson
Carrier object for Person.
Constructors
NSPerson()
Initializes a new instance of the NSPerson class.
Declaration
NSPerson Methods
GetActiveErpLinks()
How many active ERP links are there for this person?
Declaration
Integer GetActiveErpLinks() Examples
NSPerson thing;
Integer activeErpLinks = thing.GetActiveErpLinks();
Returns
| Type | Description |
| Integer |
GetActiveInterests()
Number of records in pintr table; select count(*) from pintr pi where pi.person_id = this.person_id == activeInterests is always true
Declaration
Integer GetActiveInterests() Examples
NSPerson thing;
Integer activeInterests = thing.GetActiveInterests();
Returns
| Type | Description |
| Integer |
GetAssociateId()
ID of the item's owner (Associate id)
Declaration
Integer GetAssociateId() Examples
NSPerson thing;
Integer associateId = thing.GetAssociateId();
Returns
| Type | Description |
| Integer |
GetAssociateName()
Name of the person's owner
Declaration
String GetAssociateName() Examples
NSPerson thing;
String associateName = thing.GetAssociateName();
Returns
| Type | Description |
| String |
GetCategoryName()
The category list item name
Declaration
String GetCategoryName() Examples
NSPerson thing;
String categoryName = thing.GetCategoryName();
Returns
| Type | Description |
| String |
GetContactCountryId()
The persons contact country ID
Declaration
Integer GetContactCountryId() Examples
NSPerson thing;
Integer contactCountryId = thing.GetContactCountryId();
Returns
| Type | Description |
| Integer |
GetContactDepartment()
The persons contact department
Declaration
String GetContactDepartment() Examples
NSPerson thing;
String contactDepartment = thing.GetContactDepartment();
Returns
| Type | Description |
| String |
GetContactFax()
Actual phone number as entered by the user
Declaration
String GetContactFax() Examples
NSPerson thing;
String contactFax = thing.GetContactFax();
Returns
| Type | Description |
| String |
GetContactFullName()
Company full name + department
Declaration
String GetContactFullName() Examples
NSPerson thing;
String contactFullName = thing.GetContactFullName();
Returns
| Type | Description |
| String |
GetContactId()
Owning contact ID
Declaration
Integer GetContactId() Examples
NSPerson thing;
Integer contactId = thing.GetContactId();
Returns
| Type | Description |
| Integer |
GetContactName()
The persons company name
Declaration
String GetContactName() Examples
NSPerson thing;
String contactName = thing.GetContactName();
Returns
| Type | Description |
| String |
GetContactOrgNr()
The persons contact organization number
Declaration
String GetContactOrgNr() Examples
NSPerson thing;
String contactOrgNr = thing.GetContactOrgNr();
Returns
| Type | Description |
| String |
GetContactPhone()
Returns the direct phone that belong to the persons contact.
Declaration
String GetContactPhone() Examples
NSPerson thing;
String contactPhone = thing.GetContactPhone();
Returns
| Type | Description |
| String |
GetCountryId()
Country
Declaration
Integer GetCountryId() Examples
NSPerson thing;
Integer countryId = thing.GetCountryId();
Returns
| Type | Description |
| Integer |
GetDescription()
Info text/description on person.
Declaration
String GetDescription() Examples
NSPerson thing;
String description = thing.GetDescription();
Returns
| Type | Description |
| String |
GetDirectPhone()
Returns the direct phone that belong to the contact person.
Declaration
String GetDirectPhone() Examples
NSPerson thing;
String directPhone = thing.GetDirectPhone();
Returns
| Type | Description |
| String |
GetEmail()
First email on contact person.
Declaration
String GetEmail() Examples
NSPerson thing;
String email = thing.GetEmail();
Returns
| Type | Description |
| String |
GetEmailName()
Email description
Declaration
String GetEmailName() Examples
NSPerson thing;
String emailName = thing.GetEmailName();
Returns
| Type | Description |
| String |
GetFaxPhone()
Returns the fax phone that belong to the contact person.
Declaration
String GetFaxPhone() Examples
NSPerson thing;
String faxPhone = thing.GetFaxPhone();
Returns
| Type | Description |
| String |
GetFirstname()
First name
Declaration
String GetFirstname() Examples
NSPerson thing;
String firstname = thing.GetFirstname();
Returns
| Type | Description |
| String |
GetFormalName()
Gets formal name for a person, as used in labels. (Full name + person title + academic title)
Declaration
String GetFormalName() Examples
NSPerson thing;
String formalName = thing.GetFormalName();
Returns
| Type | Description |
| String |
GetFullName()
Gets the persons full name (internal name used in clients for employees).
Declaration
String GetFullName() Examples
NSPerson thing;
String fullName = thing.GetFullName();
Returns
| Type | Description |
| String |
GetKanafname()
Kana first name, used in Japanese versions only
Declaration
String GetKanafname() Examples
NSPerson thing;
String kanafname = thing.GetKanafname();
Returns
| Type | Description |
| String |
GetKanalname()
Kana last name, used in Japanese versions only
Declaration
String GetKanalname() Examples
NSPerson thing;
String kanalname = thing.GetKanalname();
Returns
| Type | Description |
| String |
GetLastname()
Last name
Declaration
String GetLastname() Examples
NSPerson thing;
String lastname = thing.GetLastname();
Returns
| Type | Description |
| String |
GetMiddleName()
Middle name or 'van' etc.
Declaration
String GetMiddleName() Examples
NSPerson thing;
String middleName = thing.GetMiddleName();
Returns
| Type | Description |
| String |
GetMobilePhone()
Returns the mobile phone that belong to the contact person.
Declaration
String GetMobilePhone() Examples
NSPerson thing;
String mobilePhone = thing.GetMobilePhone();
Returns
| Type | Description |
| String |
GetMrmrs()
Declaration
String GetMrmrs() Examples
NSPerson thing;
String mrmrs = thing.GetMrmrs();
Returns
| Type | Description |
| String |
GetPersonId()
Primary key
Declaration
Integer GetPersonId() Examples
NSPerson thing;
Integer personId = thing.GetPersonId();
Returns
| Type | Description |
| Integer |
GetPosition()
The position. This is a predefined SuperOffice value, different from Title
Declaration
String GetPosition() Examples
NSPerson thing;
String position = thing.GetPosition();
Returns
| Type | Description |
| String |
GetPost1()
Postal address, used in Japanese versions only
Declaration
String GetPost1() Examples
NSPerson thing;
String post1 = thing.GetPost1();
Returns
| Type | Description |
| String |
GetPost2()
Postal address, used in Japanese versions only
Declaration
String GetPost2() Examples
NSPerson thing;
String post2 = thing.GetPost2();
Returns
| Type | Description |
| String |
GetPost3()
Postal address, used in Japanese versions only
Declaration
String GetPost3() Examples
NSPerson thing;
String post3 = thing.GetPost3();
Returns
| Type | Description |
| String |
GetRank()
Display sort sequence for default sort order
Declaration
Integer GetRank() Examples
NSPerson thing;
Integer rank = thing.GetRank();
Returns
| Type | Description |
| Integer |
GetRetired()
1 = the user is retired and should have no rights, not appear in lists, etc.
Declaration
Integer GetRetired() Examples
NSPerson thing;
Integer retired = thing.GetRetired();
Returns
| Type | Description |
| Integer |
GetSupportAssociateId()
Our support contact for this person
Declaration
Integer GetSupportAssociateId() Examples
NSPerson thing;
Integer supportAssociateId = thing.GetSupportAssociateId();
Returns
| Type | Description |
| Integer |
GetSupportLanguageId()
Support priority ID
Declaration
Integer GetSupportLanguageId() Examples
NSPerson thing;
Integer supportLanguageId = thing.GetSupportLanguageId();
Returns
| Type | Description |
| Integer |
GetTicketPriorityId()
Ticket priority ID
Declaration
Integer GetTicketPriorityId() Examples
NSPerson thing;
Integer ticketPriorityId = thing.GetTicketPriorityId();
Returns
| Type | Description |
| Integer |
GetTitle()
Title
Declaration
String GetTitle() Examples
NSPerson thing;
String title = thing.GetTitle();
Returns
| Type | Description |
| String |
GetUsePersonAddress()
If 1, use person's address for mailing instead of company address
Declaration
Bool GetUsePersonAddress() Examples
NSPerson thing;
Bool usePersonAddress = thing.GetUsePersonAddress();
Returns
| Type | Description |
| Bool |
SetActiveErpLinks(Integer)
How many active ERP links are there for this person?
Declaration
Void SetActiveErpLinks(Integer activeErpLinks) Examples
NSPerson thing;
Integer activeErpLinks;
thing.SetActiveErpLinks(activeErpLinks);
Parameters
| Type | Name | Description |
| Integer | activeErpLinks |
Returns
| Type | Description |
| Void |
SetActiveInterests(Integer)
Number of records in pintr table; select count(*) from pintr pi where pi.person_id = this.person_id == activeInterests is always true
Declaration
Void SetActiveInterests(Integer activeInterests) Examples
NSPerson thing;
Integer activeInterests;
thing.SetActiveInterests(activeInterests);
Parameters
| Type | Name | Description |
| Integer | activeInterests |
Returns
| Type | Description |
| Void |
SetAssociateId(Integer)
ID of the item's owner (Associate id)
Declaration
Void SetAssociateId(Integer associateId) Examples
NSPerson thing;
Integer associateId;
thing.SetAssociateId(associateId);
Parameters
| Type | Name | Description |
| Integer | associateId |
Returns
| Type | Description |
| Void |
SetAssociateName(String)
Name of the person's owner
Declaration
Void SetAssociateName(String associateName) Examples
NSPerson thing;
String associateName;
thing.SetAssociateName(associateName);
Parameters
| Type | Name | Description |
| String | associateName |
Returns
| Type | Description |
| Void |
SetCategoryName(String)
The category list item name
Declaration
Void SetCategoryName(String categoryName) Examples
NSPerson thing;
String categoryName;
thing.SetCategoryName(categoryName);
Parameters
| Type | Name | Description |
| String | categoryName |
Returns
| Type | Description |
| Void |
SetContactCountryId(Integer)
The persons contact country ID
Declaration
Void SetContactCountryId(Integer contactCountryId) Examples
NSPerson thing;
Integer contactCountryId;
thing.SetContactCountryId(contactCountryId);
Parameters
| Type | Name | Description |
| Integer | contactCountryId |
Returns
| Type | Description |
| Void |
SetContactDepartment(String)
The persons contact department
Declaration
Void SetContactDepartment(String contactDepartment) Examples
NSPerson thing;
String contactDepartment;
thing.SetContactDepartment(contactDepartment);
Parameters
| Type | Name | Description |
| String | contactDepartment |
Returns
| Type | Description |
| Void |
SetContactFax(String)
Actual phone number as entered by the user
Declaration
Void SetContactFax(String contactFax) Examples
NSPerson thing;
String contactFax;
thing.SetContactFax(contactFax);
Parameters
| Type | Name | Description |
| String | contactFax |
Returns
| Type | Description |
| Void |
SetContactFullName(String)
Company full name + department
Declaration
Void SetContactFullName(String contactFullName) Examples
NSPerson thing;
String contactFullName;
thing.SetContactFullName(contactFullName);
Parameters
| Type | Name | Description |
| String | contactFullName |
Returns
| Type | Description |
| Void |
SetContactId(Integer)
Owning contact ID
Declaration
Void SetContactId(Integer contactId) Examples
NSPerson thing;
Integer contactId;
thing.SetContactId(contactId);
Parameters
| Type | Name | Description |
| Integer | contactId |
Returns
| Type | Description |
| Void |
SetContactName(String)
The persons company name
Declaration
Void SetContactName(String contactName) Examples
NSPerson thing;
String contactName;
thing.SetContactName(contactName);
Parameters
| Type | Name | Description |
| String | contactName |
Returns
| Type | Description |
| Void |
SetContactOrgNr(String)
The persons contact organization number
Declaration
Void SetContactOrgNr(String contactOrgNr) Examples
NSPerson thing;
String contactOrgNr;
thing.SetContactOrgNr(contactOrgNr);
Parameters
| Type | Name | Description |
| String | contactOrgNr |
Returns
| Type | Description |
| Void |
SetContactPhone(String)
Returns the direct phone that belong to the persons contact.
Declaration
Void SetContactPhone(String contactPhone) Examples
NSPerson thing;
String contactPhone;
thing.SetContactPhone(contactPhone);
Parameters
| Type | Name | Description |
| String | contactPhone |
Returns
| Type | Description |
| Void |
SetCountryId(Integer)
Country
Declaration
Void SetCountryId(Integer countryId) Examples
NSPerson thing;
Integer countryId;
thing.SetCountryId(countryId);
Parameters
| Type | Name | Description |
| Integer | countryId |
Returns
| Type | Description |
| Void |
SetDescription(String)
Info text/description on person.
Declaration
Void SetDescription(String description) Examples
NSPerson thing;
String description;
thing.SetDescription(description);
Parameters
| Type | Name | Description |
| String | description |
Returns
| Type | Description |
| Void |
SetDirectPhone(String)
Returns the direct phone that belong to the contact person.
Declaration
Void SetDirectPhone(String directPhone) Examples
NSPerson thing;
String directPhone;
thing.SetDirectPhone(directPhone);
Parameters
| Type | Name | Description |
| String | directPhone |
Returns
| Type | Description |
| Void |
SetEmail(String)
First email on contact person.
Declaration
Void SetEmail(String email) Examples
NSPerson thing;
String email;
thing.SetEmail(email);
Parameters
| Type | Name | Description |
| String |
Returns
| Type | Description |
| Void |
SetEmailName(String)
Email description
Declaration
Void SetEmailName(String emailName) Examples
NSPerson thing;
String emailName;
thing.SetEmailName(emailName);
Parameters
| Type | Name | Description |
| String | emailName |
Returns
| Type | Description |
| Void |
SetFaxPhone(String)
Returns the fax phone that belong to the contact person.
Declaration
Void SetFaxPhone(String faxPhone) Examples
NSPerson thing;
String faxPhone;
thing.SetFaxPhone(faxPhone);
Parameters
| Type | Name | Description |
| String | faxPhone |
Returns
| Type | Description |
| Void |
SetFirstname(String)
First name
Declaration
Void SetFirstname(String firstname) Examples
NSPerson thing;
String firstname;
thing.SetFirstname(firstname);
Parameters
| Type | Name | Description |
| String | firstname |
Returns
| Type | Description |
| Void |
SetFormalName(String)
Gets formal name for a person, as used in labels. (Full name + person title + academic title)
Declaration
Void SetFormalName(String formalName) Examples
NSPerson thing;
String formalName;
thing.SetFormalName(formalName);
Parameters
| Type | Name | Description |
| String | formalName |
Returns
| Type | Description |
| Void |
SetFullName(String)
Gets the persons full name (internal name used in clients for employees).
Declaration
Void SetFullName(String fullName) Examples
NSPerson thing;
String fullName;
thing.SetFullName(fullName);
Parameters
| Type | Name | Description |
| String | fullName |
Returns
| Type | Description |
| Void |
SetKanafname(String)
Kana first name, used in Japanese versions only
Declaration
Void SetKanafname(String kanafname) Examples
NSPerson thing;
String kanafname;
thing.SetKanafname(kanafname);
Parameters
| Type | Name | Description |
| String | kanafname |
Returns
| Type | Description |
| Void |
SetKanalname(String)
Kana last name, used in Japanese versions only
Declaration
Void SetKanalname(String kanalname) Examples
NSPerson thing;
String kanalname;
thing.SetKanalname(kanalname);
Parameters
| Type | Name | Description |
| String | kanalname |
Returns
| Type | Description |
| Void |
SetLastname(String)
Last name
Declaration
Void SetLastname(String lastname) Examples
NSPerson thing;
String lastname;
thing.SetLastname(lastname);
Parameters
| Type | Name | Description |
| String | lastname |
Returns
| Type | Description |
| Void |
SetMiddleName(String)
Middle name or 'van' etc.
Declaration
Void SetMiddleName(String middleName) Examples
NSPerson thing;
String middleName;
thing.SetMiddleName(middleName);
Parameters
| Type | Name | Description |
| String | middleName |
Returns
| Type | Description |
| Void |
SetMobilePhone(String)
Returns the mobile phone that belong to the contact person.
Declaration
Void SetMobilePhone(String mobilePhone) Examples
NSPerson thing;
String mobilePhone;
thing.SetMobilePhone(mobilePhone);
Parameters
| Type | Name | Description |
| String | mobilePhone |
Returns
| Type | Description |
| Void |
SetMrmrs(String)
Declaration
Void SetMrmrs(String mrmrs) Examples
NSPerson thing;
String mrmrs;
thing.SetMrmrs(mrmrs);
Parameters
| Type | Name | Description |
| String | mrmrs |
Returns
| Type | Description |
| Void |
SetPersonId(Integer)
Primary key
Declaration
Void SetPersonId(Integer personId) Examples
NSPerson thing;
Integer personId;
thing.SetPersonId(personId);
Parameters
| Type | Name | Description |
| Integer | personId |
Returns
| Type | Description |
| Void |
SetPosition(String)
The position. This is a predefined SuperOffice value, different from Title
Declaration
Void SetPosition(String position) Examples
NSPerson thing;
String position;
thing.SetPosition(position);
Parameters
| Type | Name | Description |
| String | position |
Returns
| Type | Description |
| Void |
SetPost1(String)
Postal address, used in Japanese versions only
Declaration
Void SetPost1(String post1) Examples
NSPerson thing;
String post1;
thing.SetPost1(post1);
Parameters
| Type | Name | Description |
| String | post1 |
Returns
| Type | Description |
| Void |
SetPost2(String)
Postal address, used in Japanese versions only
Declaration
Void SetPost2(String post2) Examples
NSPerson thing;
String post2;
thing.SetPost2(post2);
Parameters
| Type | Name | Description |
| String | post2 |
Returns
| Type | Description |
| Void |
SetPost3(String)
Postal address, used in Japanese versions only
Declaration
Void SetPost3(String post3) Examples
NSPerson thing;
String post3;
thing.SetPost3(post3);
Parameters
| Type | Name | Description |
| String | post3 |
Returns
| Type | Description |
| Void |
SetRank(Integer)
Display sort sequence for default sort order
Declaration
Void SetRank(Integer rank) Examples
NSPerson thing;
Integer rank;
thing.SetRank(rank);
Parameters
| Type | Name | Description |
| Integer | rank |
Returns
| Type | Description |
| Void |
SetRetired(Integer)
1 = the user is retired and should have no rights, not appear in lists, etc.
Declaration
Void SetRetired(Integer retired) Examples
NSPerson thing;
Integer retired;
thing.SetRetired(retired);
Parameters
| Type | Name | Description |
| Integer | retired |
Returns
| Type | Description |
| Void |
SetSupportAssociateId(Integer)
Our support contact for this person
Declaration
Void SetSupportAssociateId(Integer supportAssociateId) Examples
NSPerson thing;
Integer supportAssociateId;
thing.SetSupportAssociateId(supportAssociateId);
Parameters
| Type | Name | Description |
| Integer | supportAssociateId |
Returns
| Type | Description |
| Void |
SetSupportLanguageId(Integer)
Support priority ID
Declaration
Void SetSupportLanguageId(Integer supportLanguageId) Examples
NSPerson thing;
Integer supportLanguageId;
thing.SetSupportLanguageId(supportLanguageId);
Parameters
| Type | Name | Description |
| Integer | supportLanguageId |
Returns
| Type | Description |
| Void |
SetTicketPriorityId(Integer)
Ticket priority ID
Declaration
Void SetTicketPriorityId(Integer ticketPriorityId) Examples
NSPerson thing;
Integer ticketPriorityId;
thing.SetTicketPriorityId(ticketPriorityId);
Parameters
| Type | Name | Description |
| Integer | ticketPriorityId |
Returns
| Type | Description |
| Void |
SetTitle(String)
Title
Declaration
Void SetTitle(String title) Examples
NSPerson thing;
String title;
thing.SetTitle(title);
Parameters
| Type | Name | Description |
| String | title |
Returns
| Type | Description |
| Void |
SetUsePersonAddress(Bool)
If 1, use person's address for mailing instead of company address
Declaration
Void SetUsePersonAddress(Bool usePersonAddress) Examples
NSPerson thing;
Bool usePersonAddress;
thing.SetUsePersonAddress(usePersonAddress);
Parameters
| Type | Name | Description |
| Bool | usePersonAddress |
Returns
| Type | Description |
| Void |