Table of Contents

Table "Contact Business Relation"

ID 5054
Namespace: Microsoft.CRM.BusinessRelation

Properties

Name Value
Caption Contact Business Relation
DataClassification CustomerContent
DrillDownPageID Page Microsoft.CRM.BusinessRelation."Contact Business Relations"

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

Name Type Description
FromLinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
FromNo Code[20]
ToLinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"

Returns

Type Description
Code[20]

FindByContact

procedure FindByContact(LinkType: Enum "Contact Business Relation Link To Table"; ContactNo: Code[20]): Boolean

Parameters

Name Type Description
LinkType Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
ContactNo Code[20]

Returns

Type Description
Boolean

FindByRelation

procedure FindByRelation(LinkType: Enum "Contact Business Relation Link To Table"; LinkNo: Code[20]): Boolean

Parameters

Name Type Description
LinkType Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
LinkNo Code[20]

Returns

Type Description
Boolean

GetContactNo

procedure GetContactNo(LinkType: Enum "Contact Business Relation Link To Table"; LinkNo: Code[20]): Code[20]

Parameters

Name Type Description
LinkType Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
LinkNo Code[20]

Returns

Type Description
Code[20]

CreateRelation

procedure CreateRelation(ContactNo: Code[20]; LinkNo: Code[20]; LinkToTable: Enum "Contact Business Relation Link To Table")

Parameters

Name Type Description
ContactNo Code[20]
LinkNo Code[20]
LinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"

FindOrRestoreContactBusinessRelation

procedure FindOrRestoreContactBusinessRelation(var Cont: Record Contact; RecVar: Variant; LinkToTable: Enum "Contact Business Relation Link To Table")

Parameters

Name Type Description
Cont Table Microsoft.CRM.Contact.Contact
RecVar Variant
LinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"

FindContactsByRelation

procedure FindContactsByRelation(var Contact: Record Contact; LinkType: Enum "Contact Business Relation Link To Table"; LinkNo: Code[20]): Boolean

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
LinkType Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
LinkNo Code[20]

Returns

Type Description
Boolean

GetName

procedure GetName(): Text

Returns

Type Description
Text

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

Name Type Description
LinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
Result Code[10]

OnGetContactBusinessRelation

[IntegrationEvent(False,False)]
local procedure OnGetContactBusinessRelation(var ContactBusinessRelation: Record "Contact Business Relation"; var RecordRead: Boolean)

Parameters

Name Type Description
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
RecordRead Boolean

OnGetNameCaseElse

[IntegrationEvent(False,False)]
local procedure OnGetNameCaseElse(ContactBusinessRelation: Record "Contact Business Relation"; var Name: Text)

Parameters

Name Type Description
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
Name Text

OnShowRelatedCardPageCaseElse

[IntegrationEvent(False,False)]
local procedure OnShowRelatedCardPageCaseElse(ContactBusinessRelation: Record "Contact Business Relation")

Parameters

Name Type Description
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"

OnInsertOnBeforeFindByRelation

[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeFindByRelation(ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)

Parameters

Name Type Description
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
IsHandled Boolean

OnInsertOnBeforeFindByContact

[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeFindByContact(ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)

Parameters

Name Type Description
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
IsHandled Boolean

OnBeforeUpdateContactBusinessRelation

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateContactBusinessRelation(ContactBusinessRelation: Record "Contact Business Relation"; var IsHandled: Boolean)

Parameters

Name Type Description
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
IsHandled Boolean

See also