Table "Contact Business Relation"
ID 5054
Namespace: Microsoft.CRM.BusinessRelation
Properties
Fields
| Name |
Type |
Description |
| "Contact No." |
Code[20]
|
Specifies the contact number of the company you are assigning a business relation.
|
| "Business Relation Code" |
Code[10]
|
Specifies the business relation code.
|
| "Link to Table" |
Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
|
Specifies the name of the table to which the contact is linked. There are four possible options: <blank>, Vendor, Customer, and Bank Account.
|
| "No." |
Code[20]
|
Specifies the number assigned to the contact in the Customer, Vendor, or Bank Account table. This field is only valid for contacts recorded as customer, vendor or bank accounts.
|
| "Business Relation Description" |
Text[100]
|
Specifies the description for the business relation you have assigned to the contact. This field is not editable.
|
| "Contact Name" |
Text[100]
|
Specifies the name of the contact.
|
| SystemId |
Guid
|
|
| SystemCreatedAt |
DateTime
|
|
| SystemCreatedBy |
Guid
|
|
| SystemModifiedAt |
DateTime
|
|
| SystemModifiedBy |
Guid
|
|
| SystemCreatedByUserName |
Text[50]
|
|
| SystemCreatedByFullName |
Text[80]
|
|
| SystemModifiedByUserName |
Text[50]
|
|
| SystemModifiedByFullName |
Text[80]
|
|
| SystemRowVersion |
BigInteger
|
|
Methods
GetLinkedTables
procedure GetLinkedTables(FromLinkToTable: Enum "Contact Business Relation Link To Table"; FromNo: Code[20]; ToLinkToTable: Enum "Contact Business Relation Link To Table"): Code[20]
Parameters
Returns
| Type |
Description |
|
Code[20] |
|
FindByContact
procedure FindByContact(LinkType: Enum "Contact Business Relation Link To Table"; ContactNo: Code[20]): Boolean
Parameters
Returns
FindByRelation
procedure FindByRelation(LinkType: Enum "Contact Business Relation Link To Table"; LinkNo: Code[20]): Boolean
Parameters
Returns
GetContactNo
procedure GetContactNo(LinkType: Enum "Contact Business Relation Link To Table"; LinkNo: Code[20]): Code[20]
Parameters
Returns
| Type |
Description |
|
Code[20] |
|
CreateRelation
procedure CreateRelation(ContactNo: Code[20]; LinkNo: Code[20]; LinkToTable: Enum "Contact Business Relation Link To Table")
Parameters
FindOrRestoreContactBusinessRelation
procedure FindOrRestoreContactBusinessRelation(var Cont: Record Contact; RecVar: Variant; LinkToTable: Enum "Contact Business Relation Link To Table")
Parameters
FindContactsByRelation
procedure FindContactsByRelation(var Contact: Record Contact; LinkType: Enum "Contact Business Relation Link To Table"; LinkNo: Code[20]): Boolean
Parameters
Returns
GetName
procedure GetName(): Text
Returns
ShowRelatedCardPage
procedure ShowRelatedCardPage()
UpdateContactBusinessRelation
procedure UpdateContactBusinessRelation()
Events
OnFindOrRestoreContactBusinessRelationCaseElse
[IntegrationEvent(False,False)]
local procedure OnFindOrRestoreContactBusinessRelationCaseElse(RecVar: Variant)
Parameters
| Name |
Type |
Description |
|
RecVar
|
Variant |
|
OnGetBusinessRelationCodeFromSetupCaseElse
[IntegrationEvent(False,False)]
local procedure OnGetBusinessRelationCodeFromSetupCaseElse(LinkToTable: Enum "Contact Business Relation Link To Table"; var Result: Code[10])
Parameters
OnGetContactBusinessRelation
[IntegrationEvent(False,False)]
local procedure OnGetContactBusinessRelation(var ContactBusinessRelation: Record "Contact Business Relation"; var RecordRead: Boolean)
Parameters
OnGetNameCaseElse
[IntegrationEvent(False,False)]
local procedure OnGetNameCaseElse(ContactBusinessRelation: Record "Contact Business Relation"; var Name: Text)
Parameters
OnShowRelatedCardPageCaseElse
[IntegrationEvent(False,False)]
local procedure OnShowRelatedCardPageCaseElse(ContactBusinessRelation: Record "Contact Business Relation")
Parameters
OnInsertOnBeforeFindByRelation
[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeFindByRelation(ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)
Parameters
OnInsertOnBeforeFindByContact
[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeFindByContact(ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)
Parameters
OnBeforeUpdateContactBusinessRelation
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateContactBusinessRelation(ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)
Parameters
See also