Class NSContactEntity
The Contact Service. Implements all services working with the Contact object.
Syntax
Constructors
NSContactEntity()
Initializes a new instance of the NSContactEntity class.
Declaration
NSContactEntity
Methods
GetActiveErpLinks()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetActiveErpLinks()
Returns
Type | Description |
---|---|
Integer | The number of active ERP links. |
Examples
NSContactEntity thing;
Integer activeErpLinks = thing.GetActiveErpLinks();
GetActiveInterests()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetActiveInterests()
Returns
Type | Description |
---|---|
Integer | The number of active interests. |
Examples
NSContactEntity thing;
Integer activeInterests = thing.GetActiveInterests();
GetActiveStatusMonitorId()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetActiveStatusMonitorId()
Returns
Type | Description |
---|---|
Integer | Active status monitor identity with the lowest rank for contact. |
Examples
NSContactEntity thing;
Integer activeStatusMonitorId = thing.GetActiveStatusMonitorId();
GetAddress()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSAddress GetAddress()
Returns
Type | Description |
---|---|
NSAddress |
Examples
NSContactEntity thing;
NSAddress address = thing.GetAddress();
GetAssociate()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSAssociate GetAssociate()
Returns
Type | Description |
---|---|
NSAssociate | The user that owns this contact. |
Examples
NSContactEntity thing;
NSAssociate associate = thing.GetAssociate();
GetBounceEmails()
The Contact Service. Implements all services working with the Contact object.
Declaration
String[] GetBounceEmails()
Returns
Type | Description |
---|---|
String[] | Email addresses with a positive bounce counter. |
Examples
NSContactEntity thing;
String[] bounceEmails = thing.GetBounceEmails();
GetBusiness()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSBusiness GetBusiness()
Returns
Type | Description |
---|---|
NSBusiness | The business that the contact is associated with. |
Remarks
The GUI forces the user to enter a business type.
Examples
NSContactEntity thing;
NSBusiness business = thing.GetBusiness();
GetCategory()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSCategory GetCategory()
Returns
Type | Description |
---|---|
NSCategory | The category that is set on the company. |
Remarks
The GUI forces the user to enter a category type
Examples
NSContactEntity thing;
NSCategory category = thing.GetCategory();
GetContactId()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetContactId()
Returns
Type | Description |
---|---|
Integer | Primary key. |
Examples
NSContactEntity thing;
Integer contactId = thing.GetContactId();
GetCountry()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSCountry GetCountry()
Returns
Type | Description |
---|---|
NSCountry | The country this contact is located in. |
Remarks
The country a contact is saved with, affects the phone number format, and the address layout.
Examples
NSContactEntity thing;
NSCountry country = thing.GetCountry();
GetCreatedBy()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSAssociate GetCreatedBy()
Returns
Type | Description |
---|---|
NSAssociate | The user that created the contact. |
Examples
NSContactEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();
GetCreatedDate()
The Contact Service. Implements all services working with the Contact object.
Declaration
DateTime GetCreatedDate()
Returns
Type | Description |
---|---|
DateTime | Date registered. |
Examples
NSContactEntity thing;
DateTime createdDate = thing.GetCreatedDate();
GetCustomerLanguage()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSCustomerLanguage GetCustomerLanguage()
Returns
Type | Description |
---|---|
NSCustomerLanguage | language. |
Examples
NSContactEntity thing;
NSCustomerLanguage customerLanguage = thing.GetCustomerLanguage();
GetCustomFields()
Gets the user-defined + extra fields on an NSContactEntity as a map.
Declaration
Map GetCustomFields()
Returns
Type | Description |
---|---|
Map |
Examples
NSContactEntity 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 Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetDbiAgentId()
Returns
Type | Description |
---|---|
Integer | Integration agent (eJournal). |
Examples
NSContactEntity thing;
Integer dbiAgentId = thing.GetDbiAgentId();
GetDbiKey()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetDbiKey()
Returns
Type | Description |
---|---|
String | The primary key for the integrated entry in the external data source. |
Examples
NSContactEntity thing;
String dbiKey = thing.GetDbiKey();
GetDbiLastModified()
The Contact Service. Implements all services working with the Contact object.
Declaration
DateTime GetDbiLastModified()
Returns
Type | Description |
---|---|
DateTime | When the entry was last modified. |
Examples
NSContactEntity thing;
DateTime dbiLastModified = thing.GetDbiLastModified();
GetDbiLastSyncronized()
The Contact Service. Implements all services working with the Contact object.
Declaration
DateTime GetDbiLastSyncronized()
Returns
Type | Description |
---|---|
DateTime | Last external synchronization. |
Examples
NSContactEntity thing;
DateTime dbiLastSyncronized = thing.GetDbiLastSyncronized();
GetDeleted()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetDeleted()
Returns
Type | Description |
---|---|
Integer | If nonzero, then this contact is 'deleted' and should generally not be shown. |
Examples
NSContactEntity thing;
Integer deleted = thing.GetDeleted();
GetDepartment()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetDepartment()
Returns
Type | Description |
---|---|
String | Department. |
Examples
NSContactEntity thing;
String department = thing.GetDepartment();
GetDescription()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetDescription()
Returns
Type | Description |
---|---|
String | Description of the contact. Usually shown as a post-it note. |
Examples
NSContactEntity thing;
String description = thing.GetDescription();
GetEmails()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSEntityElement[] GetEmails()
Returns
Type | Description |
---|---|
NSEntityElement[] | The contact's email. |
Examples
NSContactEntity thing;
NSEntityElement[] emails = thing.GetEmails();
GetExtraFields()
Gets the extra fields on NSContactEntity as a map.
Declaration
Map GetExtraFields()
Returns
Type | Description |
---|---|
Map | Map containing extra field values by field name. |
Examples
NSContactEntity 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()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSEntityElement[] GetFaxes()
Returns
Type | Description |
---|---|
NSEntityElement[] | The contact's fax numbers. |
Examples
NSContactEntity thing;
NSEntityElement[] faxes = thing.GetFaxes();
GetGroupId()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetGroupId()
Returns
Type | Description |
---|---|
Integer | Group ID of original owning associate, semantics like appnt.grp_id. |
Examples
NSContactEntity thing;
Integer groupId = thing.GetGroupId();
GetInterests()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSSelectableMDOListItem[] GetInterests()
Returns
Type | Description |
---|---|
NSSelectableMDOListItem[] | The contact's available and selected interests. |
Examples
NSContactEntity thing;
NSSelectableMDOListItem[] interests = thing.GetInterests();
GetKananame()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetKananame()
Returns
Type | Description |
---|---|
String | Contact kana name, used in Japanese versions only. |
Examples
NSContactEntity thing;
String kananame = thing.GetKananame();
GetName()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetName()
Returns
Type | Description |
---|---|
String | Contact name. |
Examples
NSContactEntity thing;
String name = thing.GetName();
GetNoMailing()
The Contact Service. Implements all services working with the Contact object.
Declaration
Bool GetNoMailing()
Returns
Type | Description |
---|---|
Bool | Spam filter. Indicates if this contact should retrieve advertising. |
Examples
NSContactEntity thing;
Bool noMailing = thing.GetNoMailing();
GetNumber1()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetNumber1()
Returns
Type | Description |
---|---|
String | Alphanumeric user field. |
Examples
NSContactEntity thing;
String number1 = thing.GetNumber1();
GetNumber2()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetNumber2()
Returns
Type | Description |
---|---|
String | Alphanumeric user field. |
Examples
NSContactEntity thing;
String number2 = thing.GetNumber2();
GetOrgNr()
The Contact Service. Implements all services working with the Contact object.
Declaration
String GetOrgNr()
Returns
Type | Description |
---|---|
String | VAT number or similar. |
Examples
NSContactEntity thing;
String orgNr = thing.GetOrgNr();
GetPersons()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSPerson[] GetPersons()
Returns
Type | Description |
---|---|
NSPerson[] | The persons belonging to the contact. |
Examples
NSContactEntity thing;
NSPerson[] persons = thing.GetPersons();
GetPhones()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSEntityElement[] GetPhones()
Returns
Type | Description |
---|---|
NSEntityElement[] | The contact's phone numbers. |
Examples
NSContactEntity thing;
NSEntityElement[] phones = thing.GetPhones();
GetSource()
The Contact Service. Implements all services working with the Contact object.
Declaration
Integer GetSource()
Returns
Type | Description |
---|---|
Integer | How did we get this contact? |
Remarks
For future integration needs
Examples
NSContactEntity thing;
Integer source = thing.GetSource();
GetSupportAssociate()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSAssociate GetSupportAssociate()
Returns
Type | Description |
---|---|
NSAssociate |
Examples
NSContactEntity thing;
NSAssociate supportAssociate = thing.GetSupportAssociate();
GetSupportPerson()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSPerson GetSupportPerson()
Returns
Type | Description |
---|---|
NSPerson |
Examples
NSContactEntity thing;
NSPerson supportPerson = thing.GetSupportPerson();
GetTicketPriority()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSTicketPriority GetTicketPriority()
Returns
Type | Description |
---|---|
NSTicketPriority |
Examples
NSContactEntity thing;
NSTicketPriority ticketPriority = thing.GetTicketPriority();
GetUpdatedBy()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSAssociate GetUpdatedBy()
Returns
Type | Description |
---|---|
NSAssociate | The user that last updated the contact. |
Examples
NSContactEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();
GetUpdatedDate()
The Contact Service. Implements all services working with the Contact object.
Declaration
DateTime GetUpdatedDate()
Returns
Type | Description |
---|---|
DateTime | Date last updated. |
Examples
NSContactEntity thing;
DateTime updatedDate = thing.GetUpdatedDate();
GetUrls()
The Contact Service. Implements all services working with the Contact object.
Declaration
NSEntityElement[] GetUrls()
Returns
Type | Description |
---|---|
NSEntityElement[] | The contact's internet address. |
Examples
NSContactEntity thing;
NSEntityElement[] urls = thing.GetUrls();
GetUserDefinedFields()
Gets the user-defined fields on the NSContactEntity as a map.
Declaration
Map GetUserDefinedFields()
Returns
Type | Description |
---|---|
Map | Map containing user defined field values by field prog.id. |
Examples
NSContactEntity 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());
GetXstop()
The Contact Service. Implements all services working with the Contact object.
Declaration
Bool GetXstop()
Returns
Type | Description |
---|---|
Bool | STOP flag. |
Examples
NSContactEntity thing;
Bool xstop = thing.GetXstop();
SetActiveErpLinks(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetActiveErpLinks(Integer activeErpLinks)
Parameters
Type | Name | Description |
---|---|---|
Integer | activeErpLinks | The number of active ERP links. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer activeErpLinks;
thing.SetActiveErpLinks(activeErpLinks);
SetActiveInterests(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetActiveInterests(Integer activeInterests)
Parameters
Type | Name | Description |
---|---|---|
Integer | activeInterests | The number of active interests. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer activeInterests;
thing.SetActiveInterests(activeInterests);
SetActiveStatusMonitorId(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetActiveStatusMonitorId(Integer activeStatusMonitorId)
Parameters
Type | Name | Description |
---|---|---|
Integer | activeStatusMonitorId | Active status monitor identity with the lowest rank for contact. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer activeStatusMonitorId;
thing.SetActiveStatusMonitorId(activeStatusMonitorId);
SetAddress(NSLocalizedField[][])
Sets a contact's address. You can pass either an NSAddress object or NSLocalizedField[][].
Declaration
Void SetAddress(NSLocalizedField[][] address)
Parameters
Type | Name | Description |
---|---|---|
address |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSAddress address;
thing.SetAddress(address);
SetAssociate(NSAssociate)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetAssociate(NSAssociate associate)
Parameters
Type | Name | Description |
---|---|---|
NSAssociate | associate | The user that owns this contact. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSAssociate associate;
thing.SetAssociate(associate);
SetBounceEmails(String[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetBounceEmails(String[] bounceEmails)
Parameters
Type | Name | Description |
---|---|---|
String[] | bounceEmails | Email addresses with a positive bounce counter. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String[] bounceEmails;
thing.SetBounceEmails(bounceEmails);
SetBusiness(NSBusiness)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetBusiness(NSBusiness business)
Parameters
Type | Name | Description |
---|---|---|
NSBusiness | business | The business that the contact is associated with. |
Returns
Type | Description |
---|---|
Void |
Remarks
The GUI forces the user to enter a business type.
Examples
NSContactEntity thing;
NSBusiness business;
thing.SetBusiness(business);
SSetCategory(NSCategory)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetCategory(NSCategory category)
Parameters
Type | Name | Description |
---|---|---|
NSCategory | category | The category that is set on the company. |
Returns
Type | Description |
---|---|
Void |
Remarks
The GUI forces the user to enter a category type
Examples
NSContactEntity thing;
NSCategory category;
thing.SetCategory(category);
SetContactId(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetContactId(Integer contactId)
Parameters
Type | Name | Description |
---|---|---|
Integer | contactId | Primary key. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer contactId;
thing.SetContactId(contactId);
SetCountry(NSCountry)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetCountry(NSCountry country)
Parameters
Type | Name | Description |
---|---|---|
NSCountry | country | The country this contact is located in. |
Returns
Type | Description |
---|---|
Void |
Remarks
The country a contact is saved with, affects the phone number format, and the address layout.
Examples
NSContactEntity thing;
NSCountry country;
thing.SetCountry(country);
SetCreatedBy(NSAssociate)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetCreatedBy(NSAssociate createdBy)
Parameters
Type | Name | Description |
---|---|---|
NSAssociate | createdBy | The user that created the contact. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);
SetCreatedDate(DateTime)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetCreatedDate(DateTime createdDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdDate | Date registered. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);
SetCustomerLanguage(NSCustomerLanguage)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetCustomerLanguage(NSCustomerLanguage customerLanguage)
Parameters
Type | Name | Description |
---|---|---|
NSCustomerLanguage | customerLanguage |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSCustomerLanguage customerLanguage;
thing.SetCustomerLanguage(customerLanguage);
SetCustomFields(Map)
Sets the user-defined and extra fields on an NSContactEntity with a map.
Declaration
Void SetCustomFields(Map udefs)
Parameters
Type | Name | Description |
---|---|---|
Map | udefs |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity 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 Contact Service. Implements all services working with the Contact object.
Declaration
Void SetDbiAgentId(Integer dbiAgentId)
Parameters
Type | Name | Description |
---|---|---|
Integer | dbiAgentId | Integration agent (eJournal). |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer dbiAgentId;
thing.SetDbiAgentId(dbiAgentId);
SetDbiKey(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetDbiKey(String dbiKey)
Parameters
Type | Name | Description |
---|---|---|
String | dbiKey | The primary key for the integrated entry in the external data source. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String dbiKey;
thing.SetDbiKey(dbiKey);
SetDbiLastModified(DateTime)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetDbiLastModified(DateTime dbiLastModified)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dbiLastModified | When the entry was last modified. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
DateTime dbiLastModified;
thing.SetDbiLastModified(dbiLastModified);
SetDbiLastSyncronized(DateTime)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetDbiLastSyncronized(DateTime dbiLastSyncronized)
Parameters
Type | Name | Description |
---|---|---|
DateTime | dbiLastSyncronized | Last external synchronization. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
DateTime dbiLastSyncronized;
thing.SetDbiLastSyncronized(dbiLastSyncronized);
SetDeleted(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetDeleted(Integer deleted)
Parameters
Type | Name | Description |
---|---|---|
Integer | deleted | If nonzero, then this contact is 'deleted' and should generally not be shown. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer deleted;
thing.SetDeleted(deleted);
SetDepartment(String)
\n
Declaration
Void SetDepartment(String department)
Parameters
Type | Name | Description |
---|---|---|
String | department | nDepartment. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String department;
thing.SetDepartment(department);
SetDescription(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetDescription(String description)
Parameters
Type | Name | Description |
---|---|---|
String | description | Description of the contact. Usually shown as a post-it note. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String description;
thing.SetDescription(description);
SetEmails(NSEntityElement[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetEmails(NSEntityElement[] emails)
Parameters
Type | Name | Description |
---|---|---|
NSEntityElement[] | emails | The contact's email. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSEntityElement[] emails;
thing.SetEmails(emails);
SetExtraFields(Map)
Sets the extra field values on NSContactEntity with a map.
Declaration
Void SetExtraFields(Map extras)
Parameters
Type | Name | Description |
---|---|---|
Map | extras |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity 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[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetFaxes(NSEntityElement[] faxes)
Parameters
Type | Name | Description |
---|---|---|
NSEntityElement[] | faxes | The contact's fax numbers. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSEntityElement[] faxes;
thing.SetFaxes(faxes);
SetGroupId(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetGroupId(Integer groupId)
Parameters
Type | Name | Description |
---|---|---|
Integer | groupId | Group ID of original owning associate, semantics like appnt.grp_id. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Integer groupId;
thing.SetGroupId(groupId);
SetInterests(NSSelectableMDOListItem[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetInterests(NSSelectableMDOListItem[] interests)
Parameters
Type | Name | Description |
---|---|---|
NSSelectableMDOListItem[] | interests | The contact's available and selected interests. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSSelectableMDOListItem[] interests;
thing.SetInterests(interests);
SetKananame(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetKananame(String kananame)
Parameters
Type | Name | Description |
---|---|---|
String | kananame | Contact kana name, used in Japanese versions only. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String kananame;
thing.SetKananame(kananame);
SetName(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetName(String name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Contact name. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String name;
thing.SetName(name);
SetNoMailing(Bool)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetNoMailing(Bool noMailing)
Parameters
Type | Name | Description |
---|---|---|
Bool | noMailing | Spam filter. Indicates if this contact should retrieve advertising. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Bool noMailing;
thing.SetNoMailing(noMailing);
SetNumber1(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetNumber1(String number1)
Parameters
Type | Name | Description |
---|---|---|
String | number1 | Alphanumeric user field. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String number1;
thing.SetNumber1(number1);
SetNumber2(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetNumber2(String number2)
Parameters
Type | Name | Description |
---|---|---|
String | number2 | Alphanumeric user field. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String number2;
thing.SetNumber2(number2);
SetOrgNr(String)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetOrgNr(String orgNr)
Parameters
Type | Name | Description |
---|---|---|
String | orgNr | VAT number or similar. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
String orgNr;
thing.SetOrgNr(orgNr);
SetPersons(NSPerson[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetPersons(NSPerson[] persons)
Parameters
Type | Name | Description |
---|---|---|
NSPerson[] | persons | The persons belonging to the contact. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSPerson[] persons;
thing.SetPersons(persons);
SetPhones(NSEntityElement[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetPhones(NSEntityElement[] phones)
Parameters
Type | Name | Description |
---|---|---|
NSEntityElement[] | phones | The contact's phone numbers. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSEntityElement[] phones;
thing.SetPhones(phones);
SetSource(Integer)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetSource(Integer source)
Parameters
Type | Name | Description |
---|---|---|
Integer | source | How did we get this contact? |
Returns
Type | Description |
---|---|
Void |
Remarks
For future integration needs
Examples
NSContactEntity thing;
Integer source;
thing.SetSource(source);
SetSupportAssociate(NSAssociate)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetSupportAssociate(NSAssociate supportAssociate)
Parameters
Type | Name | Description |
---|---|---|
NSAssociate | supportAssociate |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSAssociate supportAssociate;
thing.SetSupportAssociate(supportAssociate);
SetSupportPerson(NSPerson)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetSupportPerson(NSPerson supportPerson)
Parameters
Type | Name | Description |
---|---|---|
NSPerson | supportPerson |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSPerson supportPerson;
thing.SetSupportPerson(supportPerson);
SetTicketPriority(NSTicketPriority)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetTicketPriority(NSTicketPriority ticketPriority)
Parameters
Type | Name | Description |
---|---|---|
NSTicketPriority | ticketPriority |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSTicketPriority ticketPriority;
thing.SetTicketPriority(ticketPriority);
SetUpdatedBy(NSAssociate)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetUpdatedBy(NSAssociate updatedBy)
Parameters
Type | Name | Description |
---|---|---|
NSAssociate | updatedBy | The user that last updated the contact. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);
SetUpdatedDate(DateTime)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetUpdatedDate(DateTime updatedDate)
Parameters
Type | Name | Description |
---|---|---|
DateTime | updatedDate | Date last updated. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
DateTime updatedDate;
thing.SetUpdatedDate(updatedDate);
SetUrls(NSEntityElement[])
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetUrls(NSEntityElement[] urls)
Parameters
Type | Name | Description |
---|---|---|
NSEntityElement[] | urls | The contact's internet addresses. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
NSEntityElement[] urls;
thing.SetUrls(urls);
SetUserDefinedFields(Map)
Sets the user-defined fields on the NSContactEntity as a map.
Declaration
Void SetUserDefinedFields(Map udefs)
Parameters
Type | Name | Description |
---|---|---|
Map | udefs |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity 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);
SetXstop(Bool)
The Contact Service. Implements all services working with the Contact object.
Declaration
Void SetXstop(Bool xstop)
Parameters
Type | Name | Description |
---|---|---|
Bool | xstop | STOP flag. |
Returns
Type | Description |
---|---|
Void |
Examples
NSContactEntity thing;
Bool xstop;
thing.SetXstop(xstop);