Relationships
Access path: PublicAPI.CRM.RelationshipMethods
Name | Description | |
---|---|---|
AddAuthorPermission |
Grant the author permission for the contractor
| |
AddComment(Relationship, String) |
Add a comment to the relationship
| |
AddComment(Relationship, String, User) | ||
AddPermission(Relationship, OrganizationItem, Permission) |
Grant permissions for a contractor to a job position
| |
AddPermission(Relationship, User, Permission) |
Grant a user permissions for a contractor
| |
AddPermission(Relationship, UserGroup, Permission) |
Grant a user group permissions for a contractor
| |
CompleteRelationship |
Complete Relationship
| |
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)
| |
CreateCall |
Create Call.
Creates an object without saving to the database
| |
CreateCall(Contact) |
Create Call for a contact.
(Creates an object without saving to the database)
| |
CreateCall(Contractor) |
Create Call for a contractor.
Creates an object without saving to the database
| |
CreateCall(Lead) |
Create Call for a lead.
Creates an object without saving to the database
| |
CreateCall(Sale) |
Create Call for a sale.
Creates an object without saving to the database
| |
CreateMail |
Create Mail.
Creates an object without saving to the database
| |
CreateMail(Contact) |
Create Mail for a contact.
Creates an object without saving to the database
| |
CreateMail(Contractor) |
Create Mail for a contractor.
Creates an object without saving to the database
| |
CreateMail(Lead) |
Create Mail for a lead.
Creates an object without saving to the database
| |
CreateMail(Sale) |
Create Mail for a sale.
Creates an object without saving to the database
| |
CreateMeeting |
Create Meeting.
Creates an object without saving to the database
| |
CreateMeeting(Contact) |
Create Meeting for a contact.
Creates an object without saving to the database
| |
CreateMeeting(Contractor) |
Create Meeting for a contractor.
Creates an object without saving to the database
| |
CreateMeeting(Lead) |
Create Meeting for a lead.
Creates an object without saving to the database
| |
CreateMeeting(Sale) |
Create Meeting for a sale.
Creates an object without saving to the database
| |
Delete |
Delete Object
| |
DeleteAuthorPermission |
Remove permissions for a contractor from the author
| |
DeletePermission(Relationship, OrganizationItem) |
Remove all permissions for a contractor from a job position
| |
DeletePermission(Relationship, User) |
Remove all the permissions for a contractor from a user
| |
DeletePermission(Relationship, UserGroup) |
Remove all the permissions for a contractor from a user group
| |
DeletePermission(Relationship, OrganizationItem, Permission) |
Remove permissions for a contractor from a job position
| |
DeletePermission(Relationship, User, Permission) |
Remove permissions to manage a contractor from a user
| |
DeletePermission(Relationship, 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 "Relationship" 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 "Relationship"
|
Remarks
Examples
Create a relationship for the contractor created here. Create a meeting for example.
var myMeeting = PublicAPI.CRM.Relationship.CreateMeeting(myContractor);
Before operations with variable myMeeting, fill its required fields
//Meeting subject myMeeting.Theme = "Meetinng with New World LLC"; //Meeting start date 15:00 15.02.2014 myMeeting.StartDate = new DateTime(2014, 02, 15, 15, 00, 00); //You can skip the meeting end date; by default it is the meeting start date + 15 minutes //If 15 minutes is not enough, fill field 'End date' manually //Meeting end date 16:00 15.02.2014 myMeeting.EndDate = new DateTime(2014, 02, 15, 16, 00, 00); //context.RelationshipUsers - list of meeting participants, list IRelationshipUser //presenting the following fields to fill //User - type User - system user //Status - type RelationshipStatus - enumeration //Relationship - state your relationship myMeeting.RelationshipUsers = context.RelationshipUsers;
Add a comment to your meeting
PublicAPI.CRM.Relationship.AddComment(myMeeting, "myMeeting a meeting created for contractor myContractor");
Please save the object in the base to ensure its proper functioning
myMeeting.Save();
See Also