Share via


Table Contact

ID 5050
Namespace: Microsoft.CRM.Contact

Properties

Name Value
Caption Contact
DataCaptionFields 1,2
DataClassification CustomerContent
DrillDownPageID Page Microsoft.CRM.Contact."Contact List"
LookupPageID Page Microsoft.CRM.Contact."Contact List"
Permissions TableData "Sales Header" = rm, TableData "Contact Alt. Address" = rd, TableData "Contact Alt. Addr. Date Range" = rd, TableData "Contact Business Relation" = rid, TableData "Contact Mailing Group" = rd, TableData "Contact Industry Group" = rd, TableData "Contact Web Source" = rd, TableData "Rlshp. Mgt. Comment Line" = rd, TableData "Interaction Log Entry" = rm, TableData "Contact Job Responsibility" = rd, TableData "To-do" = rm, TableData "Contact Profile Answer" = rd, TableData Opportunity = rm, TableData "Opportunity Entry" = rm, tabledata Contact = rm, tabledata "Salesperson/Purchaser" = R, tabledata "Marketing Setup" = r, tabledata Salutation = r, tabledata "Salutation Formula" = r, tabledata Language = r, tabledata "Language Selection" = r

Fields

Name Type Description
"No." Code[20]
Name Text[100]
"Search Name" Code[100]
"Name 2" Text[50]
Address Text[100]
"Address 2" Text[50]
City Text[30]
"Phone No." Text[30]
"Telex No." Text[20]
"Territory Code" Code[10]
"Currency Code" Code[10]
"Language Code" Code[10]
"Registration Number" Text[50]
"Salesperson Code" Code[20]
"Country/Region Code" Code[10]
Comment Boolean
"Format Region" Text[80]
"Last Date Modified" Date
"Fax No." Text[30]
"Telex Answer Back" Text[20]
"VAT Registration No." Text[20]
"Post Code" Code[20]
County Text[30]
"E-Mail" Text[80]
"Home Page" Text[255]
"No. Series" Code[20]
Image Media
"Privacy Blocked" Boolean
Minor Boolean
"Parental Consent Received" Boolean
"Coupled to CRM" Boolean
"Coupled to Dataverse" Boolean
Type Enum Microsoft.CRM.Contact."Contact Type"
"Company No." Code[20]
"Company Name" Text[100]
"Lookup Contact No." Code[20]
"First Name" Text[30]
"Middle Name" Text[30]
Surname Text[30]
"Job Title" Text[30]
Initials Text[30]
"Extension No." Text[30]
"Mobile Phone No." Text[30]
Pager Text[30]
"Organizational Level Code" Code[10]
"Exclude from Segment" Boolean
"Date Filter" Date
"Next Task Date" Date
"Last Date Attempted" Date
"Date of Last Interaction" Date
"No. of Job Responsibilities" Integer
"No. of Industry Groups" Integer
"No. of Business Relations" Integer
"No. of Mailing Groups" Integer
"External ID" Code[20]
"No. of Interactions" Integer
"Cost (LCY)" Decimal
"Duration (Min.)" Decimal
"No. of Opportunities" Integer
"Estimated Value (LCY)" Decimal
"Calcd. Current Value (LCY)" Decimal
"Opportunity Entry Exists" Boolean
"Task Entry Exists" Boolean
"Salesperson Filter" Code[20]
"Campaign Filter" Code[20]
"Contact Business Relation" Enum Microsoft.CRM.BusinessRelation."Contact Business Relation"
"Action Taken Filter" Option
"Sales Cycle Filter" Code[10]
"Sales Cycle Stage Filter" Integer
"Probability % Filter" Decimal
"Completed % Filter" Decimal
"Estimated Value Filter" Decimal
"Calcd. Current Value Filter" Decimal
"Chances of Success % Filter" Decimal
"Task Status Filter" Enum Microsoft.CRM.Task."Task Status"
"Task Closed Filter" Boolean
"Priority Filter" Option
"Team Filter" Code[10]
"Close Opportunity Filter" Code[10]
"Correspondence Type" Enum Microsoft.CRM.Interaction."Correspondence Type"
"Salutation Code" Code[10]
"Search E-Mail" Code[80]
"Last Time Modified" Time
"E-Mail 2" Text[80]
"Job Responsibility Filter" Code[10]
"Xrm Id" Guid
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

DoModify

procedure DoModify(ContactBeforeModify: Record Contact)

Parameters

Name Type Description
ContactBeforeModify Table Microsoft.CRM.Contact.Contact

TypeChange

procedure TypeChange()

AssistEdit

procedure AssistEdit(OldCont: Record Contact): Boolean

Parameters

Name Type Description
OldCont Table Microsoft.CRM.Contact.Contact

Returns

Type Description
Boolean

CreateCustomer

procedure CreateCustomer(): Code[20]

Returns

Type Description
Code[20]

CreateCustomerFromTemplate

procedure CreateCustomerFromTemplate(CustomerTemplateCode: Code[20]): Code[20]

Parameters

Name Type Description
CustomerTemplateCode Code[20]

Returns

Type Description
Code[20]

CreateVendor

procedure CreateVendor(): Code[20]

Returns

Type Description
Code[20]

CreateVendorFromTemplate

procedure CreateVendorFromTemplate(VendorTemplateCode: Code[20]): Code[20]

Parameters

Name Type Description
VendorTemplateCode Code[20]

Returns

Type Description
Code[20]

CreateBankAccount

procedure CreateBankAccount(): Code[20]

Returns

Type Description
Code[20]
procedure CreateCustomerLink()
procedure CreateVendorLink()
procedure CreateBankAccountLink()

CreateInteraction

procedure CreateInteraction()

GetDefaultPhoneNo

procedure GetDefaultPhoneNo(): Text[30]

Returns

Type Description
Text[30]
procedure ShowBusinessRelation(LinkToTable: Enum "Contact Business Relation Link To Table", All: Boolean)

Parameters

Name Type Description
LinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
All Boolean

ShowBusinessRelations

procedure ShowBusinessRelations()

UpdateBusinessRelation

procedure UpdateBusinessRelation(): Boolean

Returns

Type Description
Boolean
procedure HasBusinessRelation(LinkToTable: Enum "Contact Business Relation Link To Table", BusRelationCode: Code[10]): Boolean

Parameters

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

Returns

Type Description
Boolean

HasBusinessRelations

procedure HasBusinessRelations(var RelatedCustomerEnabled: Boolean, var RelatedVendorEnabled: Boolean, var RelatedBankEnabled: Boolean, var RelatedEmployeeEnabled: Boolean)

Parameters

Name Type Description
RelatedCustomerEnabled Boolean
RelatedVendorEnabled Boolean
RelatedBankEnabled Boolean
RelatedEmployeeEnabled Boolean

SetSkipDefault

procedure SetSkipDefault()

IdenticalAddress

procedure IdenticalAddress(Cont: Record Contact): Boolean

Parameters

Name Type Description
Cont Table Microsoft.CRM.Contact.Contact

Returns

Type Description
Boolean

ActiveAltAddress

procedure ActiveAltAddress(ActiveDate: Date): Code[10]

Parameters

Name Type Description
ActiveDate Date

Returns

Type Description
Code[10]

CalculatedName

procedure CalculatedName(): Text[100]

Returns

Type Description
Text[100]

UpdateSearchName

procedure UpdateSearchName()

CheckDuplicates

procedure CheckDuplicates()

CheckContactType

procedure CheckContactType(ContactType: Enum "Contact Type")

Parameters

Name Type Description
ContactType Enum Microsoft.CRM.Contact."Contact Type"

FindNewCustomerTemplate

procedure FindNewCustomerTemplate(): Code[20]

Returns

Type Description
Code[20]

ChooseNewCustomerTemplate

procedure ChooseNewCustomerTemplate(): Code[20]

Returns

Type Description
Code[20]

UpdateQuotesFromTemplate

procedure UpdateQuotesFromTemplate(Customer: Record Customer, CustomerTemplateCode: Code[20])

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
CustomerTemplateCode Code[20]

GetSalutation

procedure GetSalutation(SalutationType: Enum "Salutation Formula Salutation Type", LanguageCode: Code[10]): Text[260]

Parameters

Name Type Description
SalutationType Enum Microsoft.CRM.Setup."Salutation Formula Salutation Type"
LanguageCode Code[10]

Returns

Type Description
Text[260]

InheritCompanyToPersonData

procedure InheritCompanyToPersonData(NewCompanyContact: Record Contact)

Parameters

Name Type Description
NewCompanyContact Table Microsoft.CRM.Contact.Contact

SetHideValidationDialog

procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)

Parameters

Name Type Description
NewHideValidationDialog Boolean

GetHideValidationDialog

procedure GetHideValidationDialog(): Boolean

Returns

Type Description
Boolean

DisplayMap

procedure DisplayMap()

ProcessNameChange

procedure ProcessNameChange()

GetCompNo

procedure GetCompNo(ContactText: Text): Text

Parameters

Name Type Description
ContactText Text

Returns

Type Description
Text

ToPriceSource

procedure ToPriceSource(var PriceSource: Record "Price Source" temporary)

Parameters

Name Type Description
PriceSource Table Microsoft.Pricing.Source."Price Source"

LookupCompany

procedure LookupCompany()

LookupNewCustomerTemplate

procedure LookupNewCustomerTemplate(): Code[20]

Returns

Type Description
Code[20]
procedure CheckForExistingRelationships(LinkToTable: Enum "Contact Business Relation Link To Table")

Parameters

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

FindCustomer

procedure FindCustomer(var Customer: Record Customer): Boolean

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer

Returns

Type Description
Boolean

SetLastDateTimeModified

procedure SetLastDateTimeModified()

GetLastDateTimeModified

procedure GetLastDateTimeModified(): DateTime

Returns

Type Description
DateTime

SetLastDateTimeFilter

procedure SetLastDateTimeFilter(DateFilter: DateTime)

Parameters

Name Type Description
DateFilter DateTime

TouchContact

procedure TouchContact(ContactNo: Code[20])

Parameters

Name Type Description
ContactNo Code[20]
procedure CountNoOfBusinessRelations(LinkToTable: Enum "Contact Business Relation Link To Table"): Integer

Parameters

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

Returns

Type Description
Integer

CreateSalesQuoteFromContact

procedure CreateSalesQuoteFromContact()

ContactToCustBusinessRelationExist

procedure ContactToCustBusinessRelationExist(): Boolean

Returns

Type Description
Boolean

CheckIfMinorForProfiles

procedure CheckIfMinorForProfiles()

CheckIfPrivacyBlocked

procedure CheckIfPrivacyBlocked(IsPosting: Boolean)

Parameters

Name Type Description
IsPosting Boolean

CheckIfPrivacyBlockedGeneric

procedure CheckIfPrivacyBlockedGeneric()

VATRegistrationValidation

procedure VATRegistrationValidation()

GetContNo

procedure GetContNo(ContactText: Text): Code[20]

Parameters

Name Type Description
ContactText Text

Returns

Type Description
Code[20]

GetContactsSelectionFromContactList

procedure GetContactsSelectionFromContactList(SelectMode: Boolean): Boolean

Parameters

Name Type Description
SelectMode Boolean

Returns

Type Description
Boolean

GetOrClear

procedure GetOrClear(ContactNo: Code[20])

Parameters

Name Type Description
ContactNo Code[20]

Events

OnAfterGetSalutation

[IntegrationEvent(False,False)]
local procedure OnAfterGetSalutation(var SalutationType: Enum "Salutation Formula Salutation Type", var LanguageCode: Code[10], var NamePart: array[5] of Text[100], var Contact: Record Contact, var SalutationFormula: Record "Salutation Formula")

Parameters

Name Type Description
SalutationType Enum Microsoft.CRM.Setup."Salutation Formula Salutation Type"
LanguageCode Code[10]
NamePart array[5] of Text[100]
Contact Table Microsoft.CRM.Contact.Contact
SalutationFormula Table Microsoft.CRM.Setup."Salutation Formula"

OnAfterInheritCompanyToPersonData

[IntegrationEvent(False,False)]
local procedure OnAfterInheritCompanyToPersonData(var Contact: Record Contact, xContact: Record Contact, NewCompanyContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
NewCompanyContact Table Microsoft.CRM.Contact.Contact

OnAfterUpdateQuotesForContact

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateQuotesForContact(Contact: Record Contact, Customer: Record Customer)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
Customer Table Microsoft.Sales.Customer.Customer

OnAfterVendorInsert

[IntegrationEvent(False,False)]
local procedure OnAfterVendorInsert(var Vendor: Record Vendor, var Contact: Record Contact)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
Contact Table Microsoft.CRM.Contact.Contact

OnBeforeVendorInsert

[IntegrationEvent(True,False)]
local procedure OnBeforeVendorInsert(var Vend: Record Vendor, var Contact: Record Contact, VendorTemplateCode: Code[20])

Parameters

Name Type Description
Vend Table Microsoft.Purchases.Vendor.Vendor
Contact Table Microsoft.CRM.Contact.Contact
VendorTemplateCode Code[20]

OnBeforeCheckIfTypeChangePossibleForPerson

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckIfTypeChangePossibleForPerson(var Contact: Record Contact, xContact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeChooseNewCustomerTemplate

[IntegrationEvent(False,False)]
local procedure OnBeforeChooseNewCustomerTemplate(var Contact: Record Contact, var CustTemplateCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CustTemplateCode Code[20]
IsHandled Boolean
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateLink(var Contact: Record Contact, var TempContBusRel: Record "Contact Business Relation", var CreateForm: Integer, var BusRelCode: Code[10], var Table: Enum "Contact Business Relation Link To Table", var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
TempContBusRel Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
CreateForm Integer
BusRelCode Code[10]
Table Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
IsHandled Boolean

OnChooseNewCustomerTemplateOnBeforeSelectWithConfirm

[IntegrationEvent(False,False)]
local procedure OnChooseNewCustomerTemplateOnBeforeSelectWithConfirm(var Contact: Record Contact, var CustomerTempl: Record "Customer Templ.", var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CustomerTempl Table Microsoft.Sales.Customer."Customer Templ."
IsHandled Boolean

OnCreateCustomerFromTemplateOnBeforeCustomerInsert

[IntegrationEvent(False,False)]
local procedure OnCreateCustomerFromTemplateOnBeforeCustomerInsert(var Cust: Record Customer, CustomerTemplate: Code[20], var Contact: Record Contact)

Parameters

Name Type Description
Cust Table Microsoft.Sales.Customer.Customer
CustomerTemplate Code[20]
Contact Table Microsoft.CRM.Contact.Contact

OnBeforeFindNewCustomerTemplate

[IntegrationEvent(False,False)]
local procedure OnBeforeFindNewCustomerTemplate(var Contact: Record Contact, var CustTemplateCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CustTemplateCode Code[20]
IsHandled Boolean

OnBeforeInheritCompanyToPersonData

[IntegrationEvent(False,False)]
local procedure OnBeforeInheritCompanyToPersonData(var Contact: Record Contact, xContact: Record Contact, var NewCompanyContact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
NewCompanyContact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeIsUpdateNeeded

[IntegrationEvent(False,False)]
local procedure OnBeforeIsUpdateNeeded(var Contact: Record Contact, xContact: Record Contact, var UpdateNeeded: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
UpdateNeeded Boolean

OnCreateCustomerOnBeforeCustomerModify

[IntegrationEvent(False,False)]
local procedure OnCreateCustomerOnBeforeCustomerModify(var Customer: Record Customer, Contact: Record Contact)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact

OnCreateCustomerFromTemplateOnAfterApplyCustomerTemplate

[IntegrationEvent(False,False)]
local procedure OnCreateCustomerFromTemplateOnAfterApplyCustomerTemplate(var Customer: Record Customer, CustomerTemplate: Record "Customer Templ.", var Contact: Record Contact)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
CustomerTemplate Table Microsoft.Sales.Customer."Customer Templ."
Contact Table Microsoft.CRM.Contact.Contact

OnCreateCustomerLinkOnAfterCreateLink

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

Parameters

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

OnAfterCalculatedName

[IntegrationEvent(False,False)]
local procedure OnAfterCalculatedName(var Contact: Record Contact, var NewName92: Text[92])

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
NewName92 Text[92]

OnAfterCreateBankAccount

[IntegrationEvent(False,False)]
local procedure OnAfterCreateBankAccount(var Contact: Record Contact, var BankAccount: Record "Bank Account")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
BankAccount Table Microsoft.Bank.BankAccount."Bank Account"

OnAfterCreateCustomer

[IntegrationEvent(False,False)]
local procedure OnAfterCreateCustomer(var Contact: Record Contact, var Customer: Record Customer)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
Customer Table Microsoft.Sales.Customer.Customer

OnAfterCreateCustomerLink

[IntegrationEvent(False,False)]
local procedure OnAfterCreateCustomerLink(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnAfterCreateInteraction

[IntegrationEvent(False,False)]
local procedure OnAfterCreateInteraction(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnAfterCreateLink

[IntegrationEvent(False,False)]
local procedure OnAfterCreateLink(var Contact: Record Contact, xContact: Record Contact, CreateFrom: Integer)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
CreateFrom Integer

OnAfterCreateVendor

[IntegrationEvent(False,False)]
local procedure OnAfterCreateVendor(var Contact: Record Contact, var Vendor: Record Vendor)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
Vendor Table Microsoft.Purchases.Vendor.Vendor

OnAfterIdenticalAddress

[IntegrationEvent(False,False)]
local procedure OnAfterIdenticalAddress(Contact: Record Contact, RecContact: Record Contact, var IsIdentical: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
RecContact Table Microsoft.CRM.Contact.Contact
IsIdentical Boolean

OnAfterModifySellToCustomerNo

[IntegrationEvent(False,False)]
local procedure OnAfterModifySellToCustomerNo(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnAfterModifyBillToCustomerNo

[IntegrationEvent(False,False)]
local procedure OnAfterModifyBillToCustomerNo(var SalesHeader: Record "Sales Header", var SalesLine: Record "Sales Line")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnAfterOnInsert

[IntegrationEvent(False,False)]
local procedure OnAfterOnInsert(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnAfterOnModify

[IntegrationEvent(False,False)]
local procedure OnAfterOnModify(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnAfterProcessNameChange

[IntegrationEvent(False,False)]
local procedure OnAfterProcessNameChange(var Contact: Record Contact, Customer: Record Customer, Vendor: Record Vendor)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
Customer Table Microsoft.Sales.Customer.Customer
Vendor Table Microsoft.Purchases.Vendor.Vendor

OnAfterSetDefaults

[IntegrationEvent(False,False)]
local procedure OnAfterSetDefaults(var Contact: Record Contact, MarketingSetup: Record "Marketing Setup")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
MarketingSetup Table Microsoft.CRM.Setup."Marketing Setup"

OnAfterSetLastDateTimeModified

[IntegrationEvent(False,False)]
local procedure OnAfterSetLastDateTimeModified(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnAfterSetDefaultSalesperson

[IntegrationEvent(False,False)]
local procedure OnAfterSetDefaultSalesperson(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnAfterSetTypeForContact

[IntegrationEvent(False,False)]
local procedure OnAfterSetTypeForContact(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnAfterShowCustVendBank

[IntegrationEvent(False,False)]
local procedure OnAfterShowCustVendBank(var Contact: Record Contact, var ContactBusinessRelation: Record "Contact Business Relation", FormSelected: Boolean)

Parameters

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

OnAfterSyncAddress

[IntegrationEvent(False,False)]
local procedure OnAfterSyncAddress(var Contact: Record Contact, RecContact: Record Contact, var ContChanged: Boolean, var ContactBeforeModify: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
RecContact Table Microsoft.CRM.Contact.Contact
ContChanged Boolean
ContactBeforeModify Table Microsoft.CRM.Contact.Contact

OnAfterTypeChange

[IntegrationEvent(False,False)]
local procedure OnAfterTypeChange(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnAfterValidateCity

[IntegrationEvent(False,False)]
local procedure OnAfterValidateCity(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnAfterValidatePostCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidatePostCode(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnAssistEditOnAfterNoSeriesMgtSetSeries

[IntegrationEvent(False,False)]
local procedure OnAssistEditOnAfterNoSeriesMgtSetSeries(var Contact: Record Contact, OldContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
OldContact Table Microsoft.CRM.Contact.Contact

OnBeforeActiveAltAddress

[IntegrationEvent(False,False)]
local procedure OnBeforeActiveAltAddress(var Contact: Record Contact, var Result: Code[10], var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
Result Code[10]
IsHandled Boolean

OnBeforeApplyCompanyChangeToPerson

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyCompanyChangeToPerson(var PersonContact: Record Contact, Contact: Record Contact, xContact: Record Contact, var ContChanged: Boolean, OldContact: Record Contact)

Parameters

Name Type Description
PersonContact Table Microsoft.CRM.Contact.Contact
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
ContChanged Boolean
OldContact Table Microsoft.CRM.Contact.Contact

OnBeforeAssistEdit

[IntegrationEvent(False,False)]
local procedure OnBeforeAssistEdit(var Contact: Record Contact, OldContact: Record Contact, var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
OldContact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean
Result Boolean

OnBeforeBankAccountInsert

[IntegrationEvent(True,False)]
local procedure OnBeforeBankAccountInsert(var BankAccount: Record "Bank Account", var Contact: Record Contact)

Parameters

Name Type Description
BankAccount Table Microsoft.Bank.BankAccount."Bank Account"
Contact Table Microsoft.CRM.Contact.Contact

OnBeforeDuplicateCheck

[IntegrationEvent(False,False)]
local procedure OnBeforeDuplicateCheck(Contact: Record Contact, xContact: Record Contact, var IsDuplicateCheckNeeded: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
IsDuplicateCheckNeeded Boolean

OnBeforeCalculatedName

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculatedName(var Contact: Record Contact, var NewName: Text[100], var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
NewName Text[100]
IsHandled Boolean

OnBeforeCheckForExistingRelationships

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckForExistingRelationships(var Contact: Record Contact, LinkToTable: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
LinkToTable Integer
IsHandled Boolean

OnBeforeCheckForCompanyContactExistingRelationships

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckForCompanyContactExistingRelationships(var Contact: Record Contact, var ContBusRel: Record "Contact Business Relation", var IsHandled: Boolean)

Parameters

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

OnBeforeCheckCompanyNo

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckCompanyNo(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeCheckDuplicates

[IntegrationEvent(True,False)]
local procedure OnBeforeCheckDuplicates(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeCheckContactType

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckContactType(var Contact: Record Contact, ContactType: Enum "Contact Type", var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
ContactType Enum Microsoft.CRM.Contact."Contact Type"
IsHandled Boolean

OnBeforeCheckUnloggedSegments

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckUnloggedSegments(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeCreateCustomerFromTemplate

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateCustomerFromTemplate(var Contact: Record Contact, var CustNo: Code[20], var IsHandled: Boolean, CustomerTemplate: Code[20], HideValidationDialog: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CustNo Code[20]
IsHandled Boolean
CustomerTemplate Code[20]
HideValidationDialog Boolean

OnBeforeCreateCompanyContactCustomerFromTemplate

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateCompanyContactCustomerFromTemplate(var Contact: Record Contact, CustomerTemplate: Code[20], var CustNo: Code[20], HideValidationDialog: Boolean, var CustomerCreated: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CustomerTemplate Code[20]
CustNo Code[20]
HideValidationDialog Boolean
CustomerCreated Boolean
IsHandled Boolean

OnBeforeCreateCompanyContactVendor

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateCompanyContactVendor(var Contact: Record Contact, var VendorNo: Code[20], HideValidationDialog: Boolean, var VendorCreated: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
VendorNo Code[20]
HideValidationDialog Boolean
VendorCreated Boolean
IsHandled Boolean

OnBeforeCreateCustomerLink

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateCustomerLink(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeCreateBankAccount

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateBankAccount(var Contact: Record Contact, var BankAccountNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
BankAccountNo Code[20]
IsHandled Boolean

OnBeforeCreateSalesQuoteFromContact

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateSalesQuoteFromContact(var Contact: Record Contact, var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnBeforeCreateVendor

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateVendor(var Contact: Record Contact, var VendorNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
VendorNo Code[20]
IsHandled Boolean

OnBeforeGetSalutation

[IntegrationEvent(False,False)]
local procedure OnBeforeGetSalutation(var Contact: Record Contact, var SalutationType: Enum "Salutation Formula Salutation Type", var LanguageCode: Code[10], var IsHandled: Boolean, var Salutation: Text[260])

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
SalutationType Enum Microsoft.CRM.Setup."Salutation Formula Salutation Type"
LanguageCode Code[10]
IsHandled Boolean
Salutation Text[260]

OnBeforeLookupCity

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupCity(var Contact: Record Contact, var PostCode: Record "Post Code")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
PostCode Table Microsoft.Foundation.Address."Post Code"

OnBeforeLookupPostCode

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupPostCode(var Contact: Record Contact, var PostCode: Record "Post Code")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
PostCode Table Microsoft.Foundation.Address."Post Code"

OnBeforeNameBreakdown

[IntegrationEvent(False,False)]
local procedure OnBeforeNameBreakdown(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeOnDelete

[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(var Contact: Record Contact, xContact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeOnInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeOnInsert(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeProcessPersonNameChange

[IntegrationEvent(True,False)]
local procedure OnBeforeProcessPersonNameChange(var IsHandled: Boolean, var Contact: Record Contact, var Customer: Record Customer, var Vendor: Record Vendor)

Parameters

Name Type Description
IsHandled Boolean
Contact Table Microsoft.CRM.Contact.Contact
Customer Table Microsoft.Sales.Customer.Customer
Vendor Table Microsoft.Purchases.Vendor.Vendor

OnBeforeTypeChange

[IntegrationEvent(True,False)]
local procedure OnBeforeTypeChange(var Contact: Record Contact, xContact: Record Contact, var InteractLogEntry: Record "Interaction Log Entry", var Opp: Record Opportunity, var Task: Record "To-do", var Cont: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
InteractLogEntry Table Microsoft.CRM.Interaction."Interaction Log Entry"
Opp Table Microsoft.CRM.Opportunity.Opportunity
Task Table Microsoft.CRM.Task."To-do"
Cont Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeVATRegistrationValidation

[IntegrationEvent(False,False)]
local procedure OnBeforeVATRegistrationValidation(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeValidateCity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCity(var Contact: Record Contact, var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
PostCode Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnBeforeValidateNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateNo(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeValidateVATRegistrationNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVATRegistrationNo(var Contact: Record Contact, xContact: Record Contact, FieldNumber: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
FieldNumber Integer
IsHandled Boolean

OnBeforeLaunchDuplicateForm

[IntegrationEvent(False,False)]
local procedure OnBeforeLaunchDuplicateForm(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeUpdateCompanyNo

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateCompanyNo(var Contact: Record Contact, xContact: Record Contact, var IsHandled: Boolean, var SkipModifyOpportunity: Boolean, var SkipModifyOpportunityEntry: Boolean, var SkipModifyTask: Boolean, var SkipModifyInteractionLogEntry: Boolean, var SkipModifySalesHeader: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean
SkipModifyOpportunity Boolean
SkipModifyOpportunityEntry Boolean
SkipModifyTask Boolean
SkipModifyInteractionLogEntry Boolean
SkipModifySalesHeader Boolean

OnBeforeUpdateQuotesFromTemplate

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateQuotesFromTemplate(Customer: Record Customer, CustomerTemplateCode: Code[20], var IsHandled: Boolean, var Contact: Record Contact)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
CustomerTemplateCode Code[20]
IsHandled Boolean
Contact Table Microsoft.CRM.Contact.Contact

OnBeforeUpdateFieldForNewCompany

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateFieldForNewCompany(var Contact: Record Contact, var FieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
FieldNo Integer
IsHandled Boolean

OnBeforeUpdateSearchName

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateSearchName(var Contact: Record Contact, xContact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeValidatePostCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePostCode(var Contact: Record Contact, var PostCode: Record "Post Code", CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
PostCode Table Microsoft.Foundation.Address."Post Code"
CurrentFieldNo Integer
IsHandled Boolean

OnCreateSalesQuoteFromContactOnBeforeSalesHeaderInsert

[IntegrationEvent(False,False)]
local procedure OnCreateSalesQuoteFromContactOnBeforeSalesHeaderInsert(var Contact: Record Contact, var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnCreateCustomerOnBeforeUpdateQuotes

[IntegrationEvent(False,False)]
local procedure OnCreateCustomerOnBeforeUpdateQuotes(var Customer: Record Customer, Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnCreateVendorOnAfterUpdateVendor

[IntegrationEvent(False,False)]
local procedure OnCreateVendorOnAfterUpdateVendor(var Vendor: Record Vendor, Contact: Record Contact, var ContBusRel: Record "Contact Business Relation")

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
Contact Table Microsoft.CRM.Contact.Contact
ContBusRel Table Microsoft.CRM.BusinessRelation."Contact Business Relation"

OnLookupNewCustomerTemplateOnBeforeSetTableView

[IntegrationEvent(False,False)]
local procedure OnLookupNewCustomerTemplateOnBeforeSetTableView(Contact: Record Contact, var CustomerTemplate: Record "Customer Templ.")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CustomerTemplate Table Microsoft.Sales.Customer."Customer Templ."

OnGetCompNoOnAfterSetFilters

[IntegrationEvent(True,False)]
local procedure OnGetCompNoOnAfterSetFilters(var Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnGetSalutationString

[IntegrationEvent(False,False)]
local procedure OnGetSalutationString(var SalutationString: Text[260], SalutationFormula: Record "Salutation Formula", NamePart: array[5] of Text[100])

Parameters

Name Type Description
SalutationString Text[260]
SalutationFormula Table Microsoft.CRM.Setup."Salutation Formula"
NamePart array[5] of Text[100]

OnShowCustVendBankOnBeforeRunPage

[IntegrationEvent(False,False)]
local procedure OnShowCustVendBankOnBeforeRunPage(var Contact: Record Contact, FormSelected: Boolean, var ContBusRel: Record "Contact Business Relation", var IsHandled: Boolean)

Parameters

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

OnAfterCreateEmployee

[IntegrationEvent(False,False)]
local procedure OnAfterCreateEmployee(var Employee: Record Employee, var ContBusRel: Record "Contact Business Relation")

Parameters

Name Type Description
Employee Table Microsoft.HumanResources.Employee.Employee
ContBusRel Table Microsoft.CRM.BusinessRelation."Contact Business Relation"

OnAfterLookupPostCode

[IntegrationEvent(False,False)]
local procedure OnAfterLookupPostCode(var Contact: Record Contact, var PostCode: Record "Post Code")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
PostCode Table Microsoft.Foundation.Address."Post Code"

OnTypeChangeOnAfterCheckInteractionLog

[IntegrationEvent(False,False)]
local procedure OnTypeChangeOnAfterCheckInteractionLog(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnTypeChangeOnAfterContSetFilters

[IntegrationEvent(False,False)]
local procedure OnTypeChangeOnAfterContSetFilters(var Contact: Record Contact, CurrentContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CurrentContact Table Microsoft.CRM.Contact.Contact

OnTypeChangeOnAfterTypePersonTestFields

[IntegrationEvent(False,False)]
local procedure OnTypeChangeOnAfterTypePersonTestFields(Contact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact

OnBeforeSetDefaultSalesperson

[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultSalesperson(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeShowResultForCustomer

[IntegrationEvent(False,False)]
local procedure OnBeforeShowResultForCustomer(var Customer: Record Customer, var Contact: Record Contact, var HideValidationDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact
HideValidationDialog Boolean
IsHandled Boolean

OnBeforeShowResultForVendor

[IntegrationEvent(False,False)]
local procedure OnBeforeShowResultForVendor(var Vendor: Record Vendor, var Contact: Record Contact, var HideValidationDialog: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
Contact Table Microsoft.CRM.Contact.Contact
HideValidationDialog Boolean
IsHandled Boolean

OnCreateVendorFromTemplateOnBeforeCommit

[IntegrationEvent(False,False)]
local procedure OnCreateVendorFromTemplateOnBeforeCommit(Contact: Record Contact, Vend: Record Vendor, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
Vend Table Microsoft.Purchases.Vendor.Vendor
IsHandled Boolean

OnAfterCreateVendorLink

[IntegrationEvent(False,False)]
local procedure OnAfterCreateVendorLink(var Contact: Record Contact, xContact: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
xContact Table Microsoft.CRM.Contact.Contact

OnBeforeCreateVendorLink

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateVendorLink(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnCreateCustomerFromTemplateOnBeforeInitCustomerNo

[IntegrationEvent(False,False)]
local procedure OnCreateCustomerFromTemplateOnBeforeInitCustomerNo(var Customer: Record Customer, var Contact: Record Contact, CustomerTempl: Record "Customer Templ.", var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact
CustomerTempl Table Microsoft.Sales.Customer."Customer Templ."
IsHandled Boolean

OnCreateVendorFromTemplateOnBeforeInitVendorNo

[IntegrationEvent(False,False)]
local procedure OnCreateVendorFromTemplateOnBeforeInitVendorNo(var Vendor: Record Vendor, var Contact: Record Contact, VendorTempl: Record "Vendor Templ.", var IsHandled: Boolean)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
Contact Table Microsoft.CRM.Contact.Contact
VendorTempl Table Microsoft.Purchases.Vendor."Vendor Templ."
IsHandled Boolean

OnBeforeProcessCompanyNameChange

[IntegrationEvent(False,False)]
local procedure OnBeforeProcessCompanyNameChange(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnProcessPersonNameChangeOnBeforeAssignCustomerContact

[IntegrationEvent(False,False)]
local procedure OnProcessPersonNameChangeOnBeforeAssignCustomerContact(var Customer: Record Customer, var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnProcessPersonNameChangeOnBeforeAssignVendorContact

[IntegrationEvent(False,False)]
local procedure OnProcessPersonNameChangeOnBeforeAssignVendorContact(var Vendor: Record Vendor, var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeOnModify

[IntegrationEvent(False,False)]
local procedure OnBeforeOnModify(var Contact: Record Contact, ContactBeforeModify: Record Contact)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
ContactBeforeModify Table Microsoft.CRM.Contact.Contact

OnBeforeValidateEmail

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateEmail(var Contact: Record Contact, CurrentFieldNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
CurrentFieldNo Integer
IsHandled Boolean

OnShowResultForVendorOnBeforeShowrelatedRecordisCreatedMsg

[IntegrationEvent(False,False)]
local procedure OnShowResultForVendorOnBeforeShowrelatedRecordisCreatedMsg(var Vendor: Record Vendor, var IsHandled: Boolean)

Parameters

Name Type Description
Vendor Table Microsoft.Purchases.Vendor.Vendor
IsHandled Boolean

OnBeforeValidateRegistrationNumber

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateRegistrationNumber(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnAfterLookupCity

[IntegrationEvent(False,False)]
local procedure OnAfterLookupCity(var Contact: Record Contact, var PostCode: Record "Post Code")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
PostCode Table Microsoft.Foundation.Address."Post Code"

OnCreateSalesQuoteFromContactOnBeforeRunPage

[IntegrationEvent(False,False)]
local procedure OnCreateSalesQuoteFromContactOnBeforeRunPage(Contact: Record Contact, SalesHeader: Record "Sales Header", var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
SalesHeader Table Microsoft.Sales.Document."Sales Header"
IsHandled Boolean

OnCreateSalesQuoteFromContactOnAfterRunPage

[IntegrationEvent(False,False)]
local procedure OnCreateSalesQuoteFromContactOnAfterRunPage(Contact: Record Contact, SalesHeader: Record "Sales Header")

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnModifyOnBeforeInheritAddressDetails

[IntegrationEvent(False,False)]
local procedure OnModifyOnBeforeInheritAddressDetails(var RecContact: Record Contact, var xRecContact: Record Contact, MarketingSetup: Record "Marketing Setup", Contact: Record Contact, var ContChanged: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
RecContact Table Microsoft.CRM.Contact.Contact
xRecContact Table Microsoft.CRM.Contact.Contact
MarketingSetup Table Microsoft.CRM.Setup."Marketing Setup"
Contact Table Microsoft.CRM.Contact.Contact
ContChanged Boolean
IsHandled Boolean

OnModifyOnBeforeInheritCommunicationDetails

[IntegrationEvent(False,False)]
local procedure OnModifyOnBeforeInheritCommunicationDetails(var RecContact: Record Contact, var xRecContact: Record Contact, MarketingSetup: Record "Marketing Setup", Contact: Record Contact, var ContChanged: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
RecContact Table Microsoft.CRM.Contact.Contact
xRecContact Table Microsoft.CRM.Contact.Contact
MarketingSetup Table Microsoft.CRM.Setup."Marketing Setup"
Contact Table Microsoft.CRM.Contact.Contact
ContChanged Boolean
IsHandled Boolean

OnCreateEmployeeOnBeforeInitEmployeeNo

[IntegrationEvent(False,False)]
local procedure OnCreateEmployeeOnBeforeInitEmployeeNo(var Employee: Record Employee, var Contact: Record Contact, EmployeeTempl: Record "Employee Templ.", var IsHandled: Boolean)

Parameters

Name Type Description
Employee Table Microsoft.HumanResources.Employee.Employee
Contact Table Microsoft.CRM.Contact.Contact
EmployeeTempl Table Microsoft.HumanResources.Employee."Employee Templ."
IsHandled Boolean

OnCreateCustomerFromTemplateOnBeforeContBusRelInsert

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

Parameters

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

OnCreateVendorFromTemplateOnBeforeContBusRelInsert

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

Parameters

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

OnCreateBankAccountOnBeforeContBusRelInsert

[IntegrationEvent(False,False)]
local procedure OnCreateBankAccountOnBeforeContBusRelInsert(var Contact: Record Contact, var BankAccount: Record "Bank Account", var ContactBusinessRelation: Record "Contact Business Relation")

Parameters

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

OnBeforeCreateBankAccountLink

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateBankAccountLink(var Contact: Record Contact, var IsHandled: Boolean)

Parameters

Name Type Description
Contact Table Microsoft.CRM.Contact.Contact
IsHandled Boolean

OnBeforeTouchContact

[IntegrationEvent(False,False)]
local procedure OnBeforeTouchContact(ContactNo: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ContactNo Code[20]
IsHandled Boolean
[IntegrationEvent(False,False)]
local procedure OnShowBusinessRelationOnAfterFilterBusinessRelations(var Rec: Record Contact, var ContactBusinessRelation: Record "Contact Business Relation", ContactBusinessRelationLinkToTable: Enum "Contact Business Relation Link To Table", All: Boolean)

Parameters

Name Type Description
Rec Table Microsoft.CRM.Contact.Contact
ContactBusinessRelation Table Microsoft.CRM.BusinessRelation."Contact Business Relation"
ContactBusinessRelationLinkToTable Enum Microsoft.CRM.BusinessRelation."Contact Business Relation Link To Table"
All Boolean

See also