Show / Hide Table of Contents

Class NSPersonEntity

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

Syntax

Constructors

NSPersonEntity()

Initializes a new instance of the NSPersonEntity class.

Declaration
NSPersonEntity

Methods

GetActiveErpLinks()

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

Declaration
Integer GetActiveErpLinks()
Returns
Type Description
Integer

How many active ERP links are there for this person?

Examples
NSPersonEntity thing;
Integer activeErpLinks = thing.GetActiveErpLinks();

GetActiveInterests()

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

Declaration
Integer GetActiveInterests()
Returns
Type Description
Integer

The number of active interests.

Examples
NSPersonEntity thing;
Integer activeInterests = thing.GetActiveInterests();

GetAddress()

Retrieves a formatted addressRetrieves the structure holding formatted address data.

Declaration
NSAddress GetAddress()
Returns
Type Description
Remarks

The layout of the array structure indicates the layout of the localized address.

Examples
NSPersonEntity thing;
NSAddress address = thing.GetAddress();

GetAssociate()

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

Declaration
NSAssociate GetAssociate()
Returns
Type Description
NSAssociate

The associate owning this person (similar to contact.Associate).

Remarks

Usually blank. Use the Person.Contact.Associate instead. Intended for use when individual persons are created (i.e. when Person.Contact is blank)

Examples
NSPersonEntity thing;
NSAssociate associate = thing.GetAssociate();

GetBirthDate()

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

Declaration
DateTime GetBirthDate()
Returns
Type Description
DateTime

The Person birth date as Date.

Examples
NSPersonEntity thing;
DateTime birthDate = thing.GetBirthDate();

GetBounceEmails()

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

Declaration
String[] GetBounceEmails()
Returns
Type Description
String[]

Email addresses with a positive bounce counter.

Examples
NSPersonEntity thing;
String[] bounceEmails = thing.GetBounceEmails();

GetBusiness()

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

Declaration
NSBusiness GetBusiness()
Returns
Type Description
NSBusiness

Person's business.

Remarks

Usually blank. Use Contact.NSBusiness instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank)

Examples
NSPersonEntity thing;
NSBusiness business = thing.GetBusiness();

GetCategory()

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

Declaration
NSCategory GetCategory()
Returns
Type Description
NSCategory

Person's category.

Remarks

Usually null. Refer to the Contact.NSCategory instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank)

Examples
NSPersonEntity thing;
NSCategory category = thing.GetCategory();

GetChatEmails()

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

Declaration
NSEntityElement[] GetChatEmails()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] chatEmails = thing.GetChatEmails();

GetConsents()

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

Declaration
NSConsentInfo[] GetConsents()
Returns
Type Description
NSConsentInfo[]

The person's available consent information.

Remarks

Missing consents are not deleted. To remove a consent, mark its legalbase as 'WITHDRAWN'

Examples
NSPersonEntity thing;
NSConsentInfo[] consents = thing.GetConsents();

GetContact()

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

Declaration
NSContact GetContact()
Returns
Type Description
NSContact

The contact the contact person is registered on.

Remarks

This is required unless the 'MandatoryContactOnPerson' preference is set.

Examples
NSPersonEntity thing;
NSContact contact = thing.GetContact();

GetCorrespondingAssociate()

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

Declaration
NSAssociate GetCorrespondingAssociate()
Returns
Type Description
NSAssociate

The associate corresponding to this person. Will be empty if the person is not a user (internal associate user, external user).

Examples
NSPersonEntity thing;
NSAssociate correspondingAssociate = thing.GetCorrespondingAssociate();

GetCountry()

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

Declaration
NSCountry GetCountry()
Returns
Type Description
NSCountry

The country this contact person is located in.

Examples
NSPersonEntity thing;
NSCountry country = thing.GetCountry();

GetCreatedBy()

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

Declaration
NSAssociate GetCreatedBy()
Returns
Type Description
NSAssociate

The user that created the person object.

Examples
NSPersonEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();

GetCreatedDate()

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

Declaration
DateTime GetCreatedDate()
Returns
Type Description
DateTime

Registered date.

Examples
NSPersonEntity thing;
DateTime createdDate = thing.GetCreatedDate();

GetCustomerLanguage()

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

Declaration
NSCustomerLanguage GetCustomerLanguage()
Returns
Type Description
NSCustomerLanguage
Examples
NSPersonEntity thing;
NSCustomerLanguage customerLanguage = thing.GetCustomerLanguage();

GetCustomFields()

Gets the user-defined + extra fields on an NSPersonEntity as a map.

Declaration
Map GetCustomFields()
Returns
Type Description
Map
Examples
NSPersonEntity thing;
Map fields = thing.GetCustomFields();
String oldValue = fields.get("SuperOffice:1");
fields.insert("SuperOffice:1", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());

GetDbiAgentId()

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

Declaration
Integer GetDbiAgentId()
Returns
Type Description
Integer

Integration agent (eJournal).

Examples
NSPersonEntity thing;
Integer dbiAgentId = thing.GetDbiAgentId();

GetDbiKey()

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

Declaration
String GetDbiKey()
Returns
Type Description
String

The primary key for the integrated entry in the external data source.

Examples
NSPersonEntity thing;
String dbiKey = thing.GetDbiKey();

GetDbiLastModified()

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

Declaration
DateTime GetDbiLastModified()
Returns
Type Description
DateTime

When the entry was last modified.

Examples
NSPersonEntity thing;
DateTime dbiLastModified = thing.GetDbiLastModified();

GetDbiLastSyncronized()

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

Declaration
DateTime GetDbiLastSyncronized()
Returns
Type Description
DateTime

Last external synchronization.

Examples
NSPersonEntity thing;
DateTime dbiLastSyncronized = thing.GetDbiLastSyncronized();

GetDescription()

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

Declaration
String GetDescription()
Returns
Type Description
String

The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases.

Examples
NSPersonEntity thing;
String description = thing.GetDescription();

GetEmails()

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

Declaration
NSEntityElement[] GetEmails()
Returns
Type Description
NSEntityElement[]

A collection of the person's emails.

Examples
NSPersonEntity thing;
NSEntityElement[] emails = thing.GetEmails();

GetExtraFields()

Gets the extra fields on NSPersonEntity as a map.

Declaration
Map GetExtraFields()
Returns
Type Description
Map
Examples
NSPersonEntity thing;
Map fields = thing.GetExtraFields();
String oldValue = fields.get("x_foobar");
fields.insert("x_foobar", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());

GetFaxes()

Returns a collection of fax numbers that belong to the contact person.

Declaration
NSEntityElement[] GetFaxes()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] faxes = thing.GetFaxes();

GetFirstname()

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

Declaration
String GetFirstname()
Returns
Type Description
String

First name.

Examples
NSPersonEntity thing;
String firstname = thing.GetFirstname();

GetFormalName()

Gets formal name for a person, as used in labels. (Full name + person title + academic title)

Declaration
String GetFormalName()
Returns
Type Description
String
Examples
NSPersonEntity thing;
String formalName = thing.GetFormalName();

GetFullName()

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

Declaration
String GetFullName()
Returns
Type Description
String

The person's full name localized to the current culture/country. (internal name used in clients for employees).

Examples
NSPersonEntity thing;
String fullName = thing.GetFullName();

GetInterests()

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

Declaration
NSSelectableMDOListItem[] GetInterests()
Returns
Type Description
NSSelectableMDOListItem[]

The person's available and selected interests.

Examples
NSPersonEntity thing;
NSSelectableMDOListItem[] interests = thing.GetInterests();

GetInternetPhones()

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

Declaration
NSEntityElement[] GetInternetPhones()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] internetPhones = thing.GetInternetPhones();

GetIsAssociate()

Checks if the person object is an associate. The property is read-only.

Declaration
Bool GetIsAssociate()
Returns
Type Description
Bool
Examples
NSPersonEntity thing;
Bool isAssociate = thing.GetIsAssociate();

GetKanafname()

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

Declaration
String GetKanafname()
Returns
Type Description
String

Kana first name, used in Japanese versions only.

Examples
NSPersonEntity thing;
String kanafname = thing.GetKanafname();

GetKanalname()

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

Declaration
String GetKanalname()
Returns
Type Description
String

Kana last name, used in Japanese versions only.

Examples
NSPersonEntity thing;
String kanalname = thing.GetKanalname();

GetLastname()

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

Declaration
String GetLastname()
Returns
Type Description
String

Last name.

Examples
NSPersonEntity thing;
String lastname = thing.GetLastname();

GetMiddleName()

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

Declaration
String GetMiddleName()
Returns
Type Description
String

Middle name or 'van' etc.

Examples
NSPersonEntity thing;
String middleName = thing.GetMiddleName();

GetMobilePhones()

Returns a collection of mobile phone numbers that belong to the contact person.

Declaration
NSEntityElement[] GetMobilePhones()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] mobilePhones = thing.GetMobilePhones();

GetMrmrs()

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

Declaration
String GetMrmrs()
Returns
Type Description
String
Examples
NSPersonEntity thing;
String mrmrs = thing.GetMrmrs();

GetNoMailing()

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

Declaration
Bool GetNoMailing()
Returns
Type Description
Bool

Spam filter. Indicates if this person should retrieve advertising.

Examples
NSPersonEntity thing;
Bool noMailing = thing.GetNoMailing();

GetOfficePhones()

Returns a collection of office phone numbers that belong to the contact person.

Declaration
NSEntityElement[] GetOfficePhones()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] officePhones = thing.GetOfficePhones();

GetOtherPhones()

Returns a collection of pagers that belong to the contact person.

Declaration
NSEntityElement[] GetOtherPhones()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] otherPhones = thing.GetOtherPhones();

GetPagers()

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

Declaration
NSEntityElement[] GetPagers()
Returns
Type Description
NSEntityElement[]

GetPersonId()

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

Declaration
Integer GetPersonId()
Returns
Type Description
Integer

Primary key.

Examples
NSPersonEntity thing;
Integer personId = thing.GetPersonId();

GetPersonNumber()

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

Declaration
String GetPersonNumber()
Returns
Type Description
String

Alphanumeric user field.

Examples
NSPersonEntity thing;
String personNumber = thing.GetPersonNumber();

GetPosition()

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

Declaration
NSPosition GetPosition()
Returns
Type Description
NSPosition

The position. This is a predefined SuperOffice value, different from Title.

Examples
NSPersonEntity thing;
NSPosition position = thing.GetPosition();

GetPost1()

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

Declaration
String GetPost1()
Returns
Type Description
String

Postal address, used in Japanese versions only.

Examples
NSPersonEntity thing;
String post1 = thing.GetPost1();

GetPost2()

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

Declaration
String GetPost2()
Returns
Type Description
String

Postal address, used in Japanese versions only.

Examples
NSPersonEntity thing;
String post2 = thing.GetPost2();

GetPost3()

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

Declaration
String GetPost3()
Returns
Type Description
String

Postal address, used in Japanese versions only.

Examples
NSPersonEntity thing;
String post3 = thing.GetPost3();

GetPrivatePhones()

Returns a collection of phone numbers that belong to the contact person.

Declaration
NSEntityElement[] GetPrivatePhones()
Returns
Type Description
NSEntityElement[]
Examples
NSPersonEntity thing;
NSEntityElement[] privatePhones = thing.GetPrivatePhones();

GetRetired()

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

Declaration
Bool GetRetired()
Returns
Type Description
Bool

True if the user is retired and should have no rights, not appear in lists, etc.

Examples
NSPersonEntity thing;
Bool retired = thing.GetRetired();

GetSalutation()

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

Declaration
String GetSalutation()
Returns
Type Description
String

Academic title, populated from Salutation list but can be overwritten with anything at all.

Examples
NSPersonEntity thing;
String salutation = thing.GetSalutation();

GetSentInfo()

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

Declaration
Integer GetSentInfo()
Returns
Type Description
Integer

Has information on username/password been sent (Service).

Examples
NSPersonEntity thing;
Integer sentInfo = thing.GetSentInfo();

GetShipmentTypes()

The person's available and selected shipment types.

Declaration
NSSelectableMDOListItem[] GetShipmentTypes()
Returns
Type Description
NSSelectableMDOListItem[]
Examples
NSPersonEntity thing;
NSSelectableMDOListItem[] shipmentTypes = thing.GetShipmentTypes();

GetShowContactTickets()

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

Declaration
Integer GetShowContactTickets()
Returns
Type Description
Integer

Should tickets related to the company be shown to this person.

Examples
NSPersonEntity thing;
Integer showContactTickets = thing.GetShowContactTickets();

GetSource()

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

Declaration
Integer GetSource()
Returns
Type Description
Integer

How did we get this person? For future integration needs.

Examples
NSPersonEntity thing;
Integer source = thing.GetSource();

GetSupportAssociate()

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

Declaration
NSAssociate GetSupportAssociate()
Returns
Type Description
NSAssociate
Examples
NSPersonEntity thing;
NSAssociate supportAssociate = thing.GetSupportAssociate();

GetTicketPriority()

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

Declaration
NSTicketPriority GetTicketPriority()
Returns
Type Description
NSTicketPriority
Examples
NSPersonEntity thing;
NSTicketPriority ticketPriority = thing.GetTicketPriority();

GetTitle()

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

Declaration
String GetTitle()
Returns
Type Description
String

Title.

Examples
NSPersonEntity thing;
String title = thing.GetTitle();

GetUpdatedBy()

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

Declaration
NSAssociate GetUpdatedBy()
Returns
Type Description
NSAssociate

The person that last updated the person object.

Examples
NSPersonEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();

GetUpdatedDate()

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

Declaration
DateTime GetUpdatedDate()
Returns
Type Description
DateTime

Last updated date.

Examples
NSPersonEntity thing;
DateTime updatedDate = thing.GetUpdatedDate();

GetUrls()

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

Declaration
NSEntityElement[] GetUrls()
Returns
Type Description
NSEntityElement[]

The URLs related to this person.

Examples
NSPersonEntity thing;
NSEntityElement[] urls = thing.GetUrls();

GetUsePersonAddress()

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

Declaration
Bool GetUsePersonAddress()
Returns
Type Description
Bool

True if the person's address should be used as mailing address, instead of the contact's address.

Examples
NSPersonEntity thing;
Bool usePersonAddress = thing.GetUsePersonAddress();

GetUserDefinedFields()

Gets the user-defined fields on the NSPersonEntity as a map.

Declaration
Map GetUserDefinedFields()
Returns
Type Description
Map
Examples
NSPersonEntity thing;
Map fields = thing.GetUserDefinedFields();
String oldValue = fields.get("SuperOffice:1");
fields.insert("SuperOffice:1", "NewValue");
for (fields.first(); !fields.eof(); fields.next())
  printLine(fields.getKey() + ":  " + fields.getVal());

GetUserInfo()

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

Declaration
NSUserInfo GetUserInfo()
Returns
Type Description
NSUserInfo

Information about the user if this person is a user. If IsAssociate (e.g. is user is true) the NSUserInfo will be provided.

Examples
NSPersonEntity thing;
NSUserInfo userInfo = thing.GetUserInfo();

SetActiveErpLinks(Integer)

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

Declaration
Void SetActiveErpLinks(Integer activeErpLinks)
Parameters
Type Name Description
Integer activeErpLinks

How many active ERP links are there for this person?

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Integer activeErpLinks;
thing.SetActiveErpLinks(activeErpLinks);

SetActiveInterests(Integer)

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

Declaration
Void SetActiveInterests(Integer activeInterests)
Parameters
Type Name Description
Integer activeInterests

The number of active interests.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Integer activeInterests;
thing.SetActiveInterests(activeInterests);

SetAddress(NSAddress)

Sets a formatted addressSets the structure holding formatted address data.

Declaration
Void SetAddress(NSAddress address)
Parameters
Type Name Description
address

The layout of the array structure indicates the layout of the localized address.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSAddress address;
thing.SetAddress(address);

SetAssociate(NSAssociate)

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

Declaration
Void SetAssociate(NSAssociate associate)
Parameters
Type Name Description
NSAssociate associate

The associate owning this person (similar to contact.Associate).

Returns
Type Description
Void
Remarks

Usually blank. Use the Person.Contact.Associate instead. Intended for use when individual persons are created (i.e. when Person.Contact is blank)

Examples
NSPersonEntity thing;
NSAssociate associate;
thing.SetAssociate(associate);

SetBirthDate(DateTime)

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

Declaration
Void SetBirthDate(DateTime birthDate)
Parameters
Type Name Description
DateTime birthDate

The Person birth date as Date.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
DateTime birthDate;
thing.SetBirthDate(birthDate);

SetBounceEmails(String[])

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

Declaration
Void SetBounceEmails(String[] bounceEmails)
Parameters
Type Name Description
String[] bounceEmails

Email addresses with a positive bounce counter.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String[] bounceEmails;
thing.SetBounceEmails(bounceEmails);

SetBusiness(NSBusiness)

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

Declaration
Void SetBusiness(NSBusiness business)
Parameters
Type Name Description
NSBusiness business

Person's business.

Returns
Type Description
Void
Remarks

Usually blank. Use Contact.NSBusiness instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank)

Examples
NSPersonEntity thing;
NSBusiness business;
thing.SetBusiness(business);

SetCategory(NSCategory)

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

Declaration
Void SetCategory(NSCategory category)
Parameters
Type Name Description
NSCategory category

Person's category.

Returns
Type Description
Void
Remarks

Usually null. Refer to the Contact.NSCategory instead. Intended for use when individual persons are created. (i.e. when Person.Contact is blank)

Examples
NSPersonEntity thing;
NSCategory category;
thing.SetCategory(category);

SetChatEmails(NSEntityElement[])

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

Declaration
Void SetChatEmails(NSEntityElement[] chatEmails)
Parameters
Type Name Description
NSEntityElement[] chatEmails
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] chatEmails;
thing.SetChatEmails(chatEmails);

SetConsents(NSConsentInfo[])

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

Declaration
Void SetConsents(NSConsentInfo[] consents)
Parameters
Type Name Description
NSConsentInfo[] consents

The person's available consent information.

Returns
Type Description
Void
Remarks

Missing consents are not deleted. To remove a consent, mark its legalbase as 'WITHDRAWN'

Examples
NSPersonEntity thing;
NSConsentInfo[] consents;
thing.SetConsents(consents);

SetContact(NSContact)

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

Declaration
Void SetContact(NSContact contact)
Parameters
Type Name Description
NSContact contact

The contact the contact person is registered on. This is required unless the 'MandatoryContactOnPerson' preference is set.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSContact contact;
thing.SetContact(contact);

SetCorrespondingAssociate(NSAssociate)

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

Declaration
Void SetCorrespondingAssociate(NSAssociate correspondingAssociate)
Parameters
Type Name Description
NSAssociate correspondingAssociate

The associate corresponding to this person.

Returns
Type Description
Void
Remarks

Will be empty if the person is not a user (internal associate user, external user).

Examples
NSPersonEntity thing;
NSAssociate correspondingAssociate;
thing.SetCorrespondingAssociate(correspondingAssociate);

SetCountry(NSCountry)

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

Declaration
Void SetCountry(NSCountry country)
Parameters
Type Name Description
NSCountry country

The country this contact person is located in.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSCountry country;
thing.SetCountry(country);

SetCreatedBy(NSAssociate)

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

Declaration
Void SetCreatedBy(NSAssociate createdBy)
Parameters
Type Name Description
NSAssociate createdBy

The user that created the person object.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);

SetCreatedDate(DateTime)

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

Declaration
Void SetCreatedDate(DateTime createdDate)
Parameters
Type Name Description
DateTime createdDate

Registered date.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);

SetCustomerLanguage(NSCustomerLanguage)

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

Declaration
Void SetCustomerLanguage(NSCustomerLanguage customerLanguage)
Parameters
Type Name Description
NSCustomerLanguage customerLanguage
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSCustomerLanguage customerLanguage;
thing.SetCustomerLanguage(customerLanguage);

SetCustomFields(Map)

Sets the user-defined and extra fields on an NSPersonEntity with a map.

Declaration
Void SetCustomFields(Map udefs)
Parameters
Type Name Description
Map udefs
Returns
Type Description
Void
Examples
NSPersonEntity thing;
Map udefs;
udefs["SuperOffice:1"] = "[I:123]";
udefs["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languages
udefs["custom.progid"] = "foobar";
udefs["x_foo"] = "foobar";
udefs["x_bar"] = "456"; // List item id
thing.SetCustomFields(udefs);

SetDbiAgentId(Integer)

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

Declaration
Void SetDbiAgentId(Integer dbiAgentId)
Parameters
Type Name Description
Integer dbiAgentId

Integration agent (eJournal).

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Integer dbiAgentId;
thing.SetDbiAgentId(dbiAgentId);

SetDbiKey(String)

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

Declaration
Void SetDbiKey(String dbiKey)
Parameters
Type Name Description
String dbiKey

The primary key for the integrated entry in the external datasource.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String dbiKey;
thing.SetDbiKey(dbiKey);

SetDbiLastModified(DateTime)

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

Declaration
Void SetDbiLastModified(DateTime dbiLastModified)
Parameters
Type Name Description
DateTime dbiLastModified

When the entry was last modified.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
DateTime dbiLastModified;
thing.SetDbiLastModified(dbiLastModified);

SetDbiLastSyncronized(DateTime)

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

Declaration
Void SetDbiLastSyncronized(DateTime dbiLastSyncronized)
Parameters
Type Name Description
DateTime dbiLastSyncronized

Last external synchronization.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
DateTime dbiLastSyncronized;
thing.SetDbiLastSyncronized(dbiLastSyncronized);

SetDescription(String)

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

Declaration
Void SetDescription(String description)
Parameters
Type Name Description
String description

The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String description;
thing.SetDescription(description);

SetEmails(NSEntityElement[])

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

Declaration
Void SetEmails(NSEntityElement[] emails)
Parameters
Type Name Description
NSEntityElement[] emails

A collection of the person's emails.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] emails;
thing.SetEmails(emails);

SetExtraFields(Map)

Sets the extra field values on NSPersonEntity with a map.

Declaration
Void SetExtraFields(Map extras)
Parameters
Type Name Description
Map extras
Returns
Type Description
Void
Examples
NSPersonEntity thing;
Map extras;
extras["SuperOffice:1"] = "[I:123]";
extras["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languages
extras["custom.progid"] = "foobar";
thing.SetExtraFields(extras);

SetFaxes(NSEntityElement[])

Returns a collection of fax numbers that belong to the contact person.

Declaration
Void SetFaxes(NSEntityElement[] faxes)
Parameters
Type Name Description
NSEntityElement[] faxes
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] faxes;
thing.SetFaxes(faxes);

SetFirstname(String)

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

Declaration
Void SetFirstname(String firstname)
Parameters
Type Name Description
String firstname

First name.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String firstname;
thing.SetFirstname(firstname);

SetFormalName(String)

Gets formal name for a person, as used in labels. (Full name + person title + academic title)

Declaration
Void SetFormalName(String formalName)
Parameters
Type Name Description
String formalName
Returns
Type Description
Void
Examples
NSPersonEntity thing;
String formalName;
thing.SetFormalName(formalName);

SetFullName(String)

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

Declaration
Void SetFullName(String fullName)
Parameters
Type Name Description
String fullName

The person's full name localized to the current culture/country. (internal name used in clients for employees).

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String fullName;
thing.SetFullName(fullName);

SetInterests(NSSelectableMDOListItem[])

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

Declaration
Void SetInterests(NSSelectableMDOListItem[] interests)
Parameters
Type Name Description
NSSelectableMDOListItem[] interests

The person's available and selected interests.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSSelectableMDOListItem[] interests;
thing.SetInterests(interests);

SetInternetPhones(NSEntityElement[])

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

Declaration
Void SetInternetPhones(NSEntityElement[] internetPhones)
Parameters
Type Name Description
NSEntityElement[] internetPhones
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] internetPhones;
thing.SetInternetPhones(internetPhones);

SetIsAssociate(Bool)

Checks if the person object is an associate. The property is read-only.

Declaration
Void SetIsAssociate(Bool isAssociate)
Parameters
Type Name Description
Bool isAssociate
Returns
Type Description
Void
Examples
NSPersonEntity thing;
Bool isAssociate;
thing.SetIsAssociate(isAssociate);

SetKanafname(String)

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

Declaration
Void SetKanafname(String kanafname)
Parameters
Type Name Description
String kanafname

Kana first name, used in Japanese versions only.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String kanafname;
thing.SetKanafname(kanafname);

SetKanalname(String)

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

Declaration
Void SetKanalname(String kanalname)
Parameters
Type Name Description
String kanalname

Kana last name, used in Japanese versions only.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String kanalname;
thing.SetKanalname(kanalname);

SetLastname(String)

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

Declaration
Void SetLastname(String lastname)
Parameters
Type Name Description
String lastname

Last name.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String lastname;
thing.SetLastname(lastname);

SetMiddleName(String)

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

Declaration
Void SetMiddleName(String middleName)
Parameters
Type Name Description
String middleName

Middle name or 'van' etc.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String middleName;
thing.SetMiddleName(middleName);

SetMobilePhones(NSEntityElement[])

Returns a collection of mobile phone numbers that belong to the contact person.

Declaration
Void SetMobilePhones(NSEntityElement[] mobilePhones)
Parameters
Type Name Description
NSEntityElement[] mobilePhones
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] mobilePhones;
thing.SetMobilePhones(mobilePhones);

SetMrmrs(String)

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

Declaration
Void SetMrmrs(String mrmrs)
Parameters
Type Name Description
String mrmrs
Returns
Type Description
Void
Examples
NSPersonEntity thing;
String mrmrs;
thing.SetMrmrs(mrmrs);

SetNoMailing(Bool)

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

Declaration
Void SetNoMailing(Bool noMailing)
Parameters
Type Name Description
Bool noMailing

Spam filter. Indicates if this person should retrieve advertising.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Bool noMailing;
thing.SetNoMailing(noMailing);

SetOfficePhones(NSEntityElement[])

Returns a collection of office phone numbers that belong to the contact person.

Declaration
Void SetOfficePhones(NSEntityElement[] officePhones)
Parameters
Type Name Description
NSEntityElement[] officePhones
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] officePhones;
thing.SetOfficePhones(officePhones);

SetOtherPhones(NSEntityElement[])

Returns a collection of pagers that belong to the contact person.

Declaration
Void SetOtherPhones(NSEntityElement[] otherPhones)
Parameters
Type Name Description
NSEntityElement[] otherPhones
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] otherPhones;
thing.SetOtherPhones(otherPhones);

SetPagers(NSEntityElement[])

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

Declaration
Void SetPagers(NSEntityElement[] pagers)
Parameters
Type Name Description
NSEntityElement[] pagers
Returns
Type Description
Void

SetPersonId(Integer)

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

Declaration
Void SetPersonId(Integer personId)
Parameters
Type Name Description
Integer personId

Primary key.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Integer personId;
thing.SetPersonId(personId);

SetPersonNumber(String)

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

Declaration
Void SetPersonNumber(String personNumber)
Parameters
Type Name Description
String personNumber

Alphanumeric user field.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String personNumber;
thing.SetPersonNumber(personNumber);

SetPosition(NSPosition)

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

Declaration
Void SetPosition(NSPosition position)
Parameters
Type Name Description
NSPosition position

The position. This is a predefined SuperOffice value, different from Title.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSPosition position;
thing.SetPosition(position);

SetPost1(String)

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

Declaration
Void SetPost1(String post1)
Parameters
Type Name Description
String post1

Postal address, used in Japanese versions only.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String post1;
thing.SetPost1(post1);

SetPost2(String)

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

Declaration
Void SetPost2(String post2)
Parameters
Type Name Description
String post2

Postal address, used in Japanese versions only

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String post2;
thing.SetPost2(post2);

SetPost3(String)

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

Declaration
Void SetPost3(String post3)
Parameters
Type Name Description
String post3

Postal address, used in Japanese versions only.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String post3;
thing.SetPost3(post3);

SetPrivatePhones(NSEntityElement[])

Returns a collection of phone numbers that belong to the contact person.

Declaration
Void SetPrivatePhones(NSEntityElement[] privatePhones)
Parameters
Type Name Description
NSEntityElement[] privatePhones
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] privatePhones;
thing.SetPrivatePhones(privatePhones);

SetRetired(Bool)

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

Declaration
Void SetRetired(Bool retired)
Parameters
Type Name Description
Bool retired

True if the user is retired and should have no rights, not appear in lists, etc.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Bool retired;
thing.SetRetired(retired);

SetSalutation(String)

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

Declaration
Void SetSalutation(String salutation)
Parameters
Type Name Description
String salutation

Academic title, populated from Salutation list but can be overwritten with anything at all.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String salutation;
thing.SetSalutation(salutation);

SetSentInfo(Integer)

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

Declaration
Void SetSentInfo(Integer sentInfo)
Parameters
Type Name Description
Integer sentInfo

Has information on username/password been sent (Service).

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Integer sentInfo;
thing.SetSentInfo(sentInfo);

SetShipmentTypes(NSSelectableMDOListItem[])

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

Declaration
Void SetShipmentTypes(NSSelectableMDOListItem[] shipmentTypes)
Parameters
Type Name Description
NSSelectableMDOListItem[] shipmentTypes

The person's available and selected shipment types.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSSelectableMDOListItem[] shipmentTypes;
thing.SetShipmentTypes(shipmentTypes);

SetShowContactTickets(Integer)

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

Declaration
Void SetShowContactTickets(Integer showContactTickets)
Parameters
Type Name Description
Integer showContactTickets

Should tickets related to the company be shown to this person.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Integer showContactTickets;
thing.SetShowContactTickets(showContactTickets);

SetSource(Integer)

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

Declaration
Void SetSource(Integer source)
Parameters
Type Name Description
Integer source

How did we get this person?

Returns
Type Description
Void
Remarks

For future integration needs

Examples
NSPersonEntity thing;
Integer source;
thing.SetSource(source);

SetSupportAssociate(NSAssociate)

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

Declaration
Void SetSupportAssociate(NSAssociate supportAssociate)
Parameters
Type Name Description
NSAssociate supportAssociate
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSAssociate supportAssociate;
thing.SetSupportAssociate(supportAssociate);

SetTicketPriority(NSTicketPriority)

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

Declaration
Void SetTicketPriority(NSTicketPriority ticketPriority)
Parameters
Type Name Description
NSTicketPriority ticketPriority
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSTicketPriority ticketPriority;
thing.SetTicketPriority(ticketPriority);

SetTitle(String)

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

Declaration
Void SetTitle(String title)
Parameters
Type Name Description
String title

Title.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
String title;
thing.SetTitle(title);

SetUpdatedBy(NSAssociate)

The person that last updated the person object

Declaration
Void SetUpdatedBy(NSAssociate updatedBy)
Parameters
Type Name Description
NSAssociate updatedBy
Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);

SetUpdatedDate(DateTime)

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

Declaration
Void SetUpdatedDate(DateTime updatedDate)
Parameters
Type Name Description
DateTime updatedDate

Last updated date.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
DateTime updatedDate;
thing.SetUpdatedDate(updatedDate);

SetUrls(NSEntityElement[])

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

Declaration
Void SetUrls(NSEntityElement[] urls)
Parameters
Type Name Description
NSEntityElement[] urls

The URLs related to this person.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSEntityElement[] urls;
thing.SetUrls(urls);

SetUsePersonAddress(Bool)

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

Declaration
Void SetUsePersonAddress(Bool usePersonAddress)
Parameters
Type Name Description
Bool usePersonAddress

True if the person's address should be used as mailing address, instead of the contact's address.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
Bool usePersonAddress;
thing.SetUsePersonAddress(usePersonAddress);

SetUserDefinedFields(Map)

Sets the user-defined fields on the NSPersonEntity as a map.

Declaration
Void SetUserDefinedFields(Map udefs)
Parameters
Type Name Description
Map udefs
Returns
Type Description
Void
Examples
NSPersonEntity thing;
Map udefs;
udefs["SuperOffice:1"] = "[I:123]";
udefs["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languages
udefs["custom.progid"] = "foobar";
thing.SetUserDefinedFields(udefs);

SetUserInfo(NSUserInfo)

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

Declaration
Void SetUserInfo(NSUserInfo userInfo)
Parameters
Type Name Description
NSUserInfo userInfo

Information about the user if this person is a user. If IsAssociate (e.g. is user is true) the NSUserInfo will be provided.

Returns
Type Description
Void
Examples
NSPersonEntity thing;
NSUserInfo userInfo;
thing.SetUserInfo(userInfo);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top