Codeunit "CustCont-Update"

ID 5056
Namespace: Microsoft.CRM.BusinessRelation

Properties

Name Value
Permissions tabledata Contact = rimd

Methods

OnInsert

procedure OnInsert(var Cust: Record Customer)

Parameters

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

OnModify

procedure OnModify(var Cust: Record Customer)

Parameters

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

OnDelete

procedure OnDelete(var Cust: Record Customer)

Parameters

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

InsertNewContact

procedure InsertNewContact(var Cust: Record Customer, LocalCall: Boolean)

Parameters

Name Type Description
Cust Table Microsoft.Sales.Customer.Customer
LocalCall Boolean

InsertNewContactPerson

procedure InsertNewContactPerson(var Cust: Record Customer, LocalCall: Boolean)

Parameters

Name Type Description
Cust Table Microsoft.Sales.Customer.Customer
LocalCall Boolean

DeleteCustomerContacts

procedure DeleteCustomerContacts(var Customer: Record Customer)

Parameters

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

ContactNameIsBlank

procedure ContactNameIsBlank(CustomerNo: Code[20]): Boolean

Parameters

Name Type Description
CustomerNo Code[20]

Returns

Type Description
Boolean

Events

OnAfterOnModify

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

Parameters

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

OnAfterTransferFieldsFromCustToCont

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

Parameters

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

OnBeforeContactInsert

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

Parameters

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

OnBeforeInsertNewContact

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertNewContact(var Customer: Record Customer, LocalCall: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
LocalCall Boolean
IsHandled Boolean

OnBeforeOnDelete

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

Parameters

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

OnBeforeOnInsert

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

Parameters

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

OnBeforeOnModify

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

Parameters

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

OnInsertNewContactOnAfterContInsert

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

Parameters

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

OnInsertNewContactPersonOnAfterContactModify

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

Parameters

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

OnInsertNewContactPersonOnBeforeValidateType

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

Parameters

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

OnInsertNewContactPersonOnBeforeContactModify

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

Parameters

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

OnInsertNewContactOnBeforeContBusRelInsert

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

Parameters

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

OnInsertNewContactOnBeforeAssignNo

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

Parameters

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

OnModifyOnBeforeTransferFieldsFromCustToContact

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

Parameters

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

See also