Contact
Access path: PublicAPI.CRM.ContactMethods
Name | Description | |
---|---|---|
AddAuthorPermission |
Grant the author permission for the contractor
| |
AddComment(Contact, String) |
Add a comment to the contact
| |
AddComment(Contact, String, User) | ||
AddPermission(Contact, OrganizationItem, Permission) |
Grant permissions for a contractor to a job position
| |
AddPermission(Contact, User, Permission) |
Grant a user permissions for a contractor
| |
AddPermission(Contact, UserGroup, Permission) |
Grant a user group permissions for a contractor
| |
Count |
Returns the total number of objects of this type
| |
Count(IEntityFilter) |
Get Total Number of Objects by Filter
| |
Create |
Create New Entity (without a Database entry)
| |
Create(Contractor) |
Create a contact for the contractor.
Creates an object without saving to the database
| |
Delete |
Delete Object
| |
DeleteAuthorPermission |
Delete permission for a contractor from the author
| |
DeletePermission(Contact, OrganizationItem) |
Remove all permissions for a contractor from a job position
| |
DeletePermission(Contact, User) |
Remove all the permissions for a contractor from a user
| |
DeletePermission(Contact, UserGroup) |
Remove all the permissions for a contractor from a user group
| |
DeletePermission(Contact, OrganizationItem, Permission) |
Remove permissions for a contractor from a job position
| |
DeletePermission(Contact, User, Permission) |
Remove permissions to manage a contractor from a user
| |
DeletePermission(Contact, UserGroup, Permission) |
Remove permissions to manage a contractor from a user
| |
DisableInheritPermissions |
Disable inheriting permissions from category
| |
EnableInheritPermissions |
Enable inheriting permissions from a category
| |
Filter |
Creates an assistant for working with the "Contact" object filter
| |
Find(FetchOptions) |
Find objects according to fetch options
| |
Find(String) |
Find objects according to the filter in the EQL language
| |
Find(IEntityFilter, FetchOptions) |
Fing objects according to fetch options and filter
| |
FindByIdArray |
Find All Objects by Array IDs
| |
IsDirty |
Check, if there are unsaved changes in the object
| |
IsNew |
Check, if the object is new (not saved in the database)
| |
Load(Guid) |
Load by UID. If not found, an exception is invoked
| |
Load(Int64) |
Load by ID. If not found, an exception is invoked
| |
LoadOrCreate(Guid) |
Load by ID. If not found, the new object is returned
| |
LoadOrCreate(Int64) |
Load by ID. If not found, the new object is returned
| |
LoadOrNull(Guid) |
Load by UID. If not found, null is returned
| |
LoadOrNull(Int64) |
Load by ID. If not found, null is returned
| |
Refresh |
Refresh (read over) Object from Database
| |
Save |
Save Object to Database
|
Properties
Name | Description | |
---|---|---|
TypeUid |
Returns the unique object identifier "Contact"
|
Remarks
Examples
Create a contact for the contractor, createdhere
//This method will create a contact, tied to a contractor var myContact = PublicAPI.CRM.Contact.Create(myContractor);
Before you start working myContact variable, fill in its required fields
//Contact Name myContact.Firstname = "John"; //Contact Last Name myContact.Surname = "Smith"; //Contact Middle Name myContact.Middlename = "James";
Add a comment to the contact
PublicAPI.CRM.Contact.AddComment(myContact, "myContact is a contact, created for myContractor");
Remember to save the object to the database for its correct operation
myContact.Save();
See Also