Codeunit "CRM Synch. Helper"

ID 5342
Namespace: Microsoft.Integration.Dataverse

Properties

Name Value
Permissions TableData "Sales Invoice Header" = m

Methods

ClearCache

procedure ClearCache()

GetDefaultPriceListName

procedure GetDefaultPriceListName(): Text[100]

Returns

Type Description
Text[100]

CreateCRMPricelevelInCurrency

procedure CreateCRMPricelevelInCurrency(var CRMPricelevel: Record "CRM Pricelevel", CurrencyCode: Code[10], NewExchangeRate: Decimal)

Parameters

Name Type Description
CRMPricelevel Table Microsoft.Integration.D365Sales."CRM Pricelevel"
CurrencyCode Code[10]
NewExchangeRate Decimal

CreateCRMPriceList

procedure CreateCRMPriceList(SalesHeader: Record "Sales Header", var CRMPricelevel: Record "CRM Pricelevel")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CRMPricelevel Table Microsoft.Integration.D365Sales."CRM Pricelevel"

UpdateCRMPriceList

procedure UpdateCRMPriceList(SalesHeader: Record "Sales Header", CRMPricelevelId: Guid)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
CRMPricelevelId Guid

CreateCRMProductpricelevelForProductAndUom

procedure CreateCRMProductpricelevelForProductAndUom(CRMProduct: Record "CRM Product", NewPriceLevelId: Guid, CRMUom: Record "CRM Uom")

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"
NewPriceLevelId Guid
CRMUom Table Microsoft.Integration.D365Sales."CRM Uom"

CreateCRMProductpriceIfAbsent

procedure CreateCRMProductpriceIfAbsent(CRMInvoicedetail: Record "CRM Invoicedetail")

Parameters

Name Type Description
CRMInvoicedetail Table Microsoft.Integration.D365Sales."CRM Invoicedetail"

FindCRMDefaultPriceList

procedure FindCRMDefaultPriceList(var CRMPricelevel: Record "CRM Pricelevel")

Parameters

Name Type Description
CRMPricelevel Table Microsoft.Integration.D365Sales."CRM Pricelevel"

FindCRMPriceListByCurrencyCode

procedure FindCRMPriceListByCurrencyCode(var CRMPricelevel: Record "CRM Pricelevel", CurrencyCode: Code[10]): Boolean

Parameters

Name Type Description
CRMPricelevel Table Microsoft.Integration.D365Sales."CRM Pricelevel"
CurrencyCode Code[10]

Returns

Type Description
Boolean

FindCRMProductPriceFromCRMInvoicedetail

procedure FindCRMProductPriceFromCRMInvoicedetail(CRMInvoicedetail: Record "CRM Invoicedetail"): Boolean

Parameters

Name Type Description
CRMInvoicedetail Table Microsoft.Integration.D365Sales."CRM Invoicedetail"

Returns

Type Description
Boolean

FindNAVLocalCurrencyInCRM

procedure FindNAVLocalCurrencyInCRM(var CRMTransactioncurrency: Record "CRM Transactioncurrency"): Guid

Parameters

Name Type Description
CRMTransactioncurrency Table Microsoft.Integration.D365Sales."CRM Transactioncurrency"

Returns

Type Description
Guid

GetBaseCurrencyPrecision

procedure GetBaseCurrencyPrecision(): Decimal

Returns

Type Description
Decimal

GetCRMCurrencyDefaultPrecision

procedure GetCRMCurrencyDefaultPrecision(): Integer

Returns

Type Description
Integer

GetCRMLCYToFCYExchangeRate

procedure GetCRMLCYToFCYExchangeRate(ToCurrencyISOCode: Text[10]): Decimal

Parameters

Name Type Description
ToCurrencyISOCode Text[10]

Returns

Type Description
Decimal

GetFCYtoFCYExchangeRate

procedure GetFCYtoFCYExchangeRate(FromFCY: Code[10], ToFCY: Code[10]): Decimal

Parameters

Name Type Description
FromFCY Code[10]
ToFCY Code[10]

Returns

Type Description
Decimal

GetUnitGroupName

procedure GetUnitGroupName(UnitOfMeasureCode: Text): Text[200]

Parameters

Name Type Description
UnitOfMeasureCode Text

Returns

Type Description
Text[200]

GetUnitOfMeasureName

procedure GetUnitOfMeasureName(UnitOfMeasureRecordRef: RecordRef): Text[100]

Parameters

Name Type Description
UnitOfMeasureRecordRef RecordRef

Returns

Type Description
Text[100]

SetCRMDecimalsSupportedValue

procedure SetCRMDecimalsSupportedValue(var CRMProduct: Record "CRM Product")

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

SetCRMDefaultPriceListOnProduct

procedure SetCRMDefaultPriceListOnProduct(var CRMProduct: Record "CRM Product"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

Returns

Type Description
Boolean

SetCRMProductStateToActive

procedure SetCRMProductStateToActive(var CRMProduct: Record "CRM Product")

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

SetCRMProductStateToRetired

procedure SetCRMProductStateToRetired(var CRMProduct: Record "CRM Product")

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

SetContactParentCompany

procedure SetContactParentCompany(AccountID: Guid, DestinationContactRecordRef: RecordRef): Boolean

Parameters

Name Type Description
AccountID Guid
DestinationContactRecordRef RecordRef

Returns

Type Description
Boolean

SynchRecordIfMappingExists

[Scope(Cloud)]
procedure SynchRecordIfMappingExists(TableNo: Integer, IntegrationTableNo: Integer, PrimaryKey: Variant): Boolean

Parameters

Name Type Description
TableNo Integer
IntegrationTableNo Integer
PrimaryKey Variant

Returns

Type Description
Boolean

SynchRecordIfMappingExists

[Scope(Cloud)]
procedure SynchRecordIfMappingExists(TableNo: Integer, IntegrationTableNo: Integer, PrimaryKey: Variant, var OutOfMapFilter: Boolean): Boolean

Parameters

Name Type Description
TableNo Integer
IntegrationTableNo Integer
PrimaryKey Variant
OutOfMapFilter Boolean

Returns

Type Description
Boolean

UpdateCRMCurrencyIdIfChanged

procedure UpdateCRMCurrencyIdIfChanged(CurrencyCode: Text, var DestinationCurrencyIDFieldRef: FieldRef): Boolean

Parameters

Name Type Description
CurrencyCode Text
DestinationCurrencyIDFieldRef FieldRef

Returns

Type Description
Boolean

UpdateCRMInvoiceStatus

procedure UpdateCRMInvoiceStatus(var CRMInvoice: Record "CRM Invoice", SalesInvoiceHeader: Record "Sales Invoice Header")

Parameters

Name Type Description
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
SalesInvoiceHeader Table Microsoft.Sales.History."Sales Invoice Header"

UpdateCRMInvoiceStatusFromEntry

procedure UpdateCRMInvoiceStatusFromEntry(var CRMInvoice: Record "CRM Invoice", CustLedgerEntry: Record "Cust. Ledger Entry"): Integer

Parameters

Name Type Description
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

Returns

Type Description
Integer

UpdateCRMPriceListItem

procedure UpdateCRMPriceListItem(var CRMProduct: Record "CRM Product"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

Returns

Type Description
Boolean

UpdateCRMPriceListItems

procedure UpdateCRMPriceListItems(var CRMProduct: Record "CRM Product"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

Returns

Type Description
Boolean

UpdateCRMPriceListItemForUom

procedure UpdateCRMPriceListItemForUom(var CRMProduct: Record "CRM Product", CRMUom: Record "CRM Uom"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"
CRMUom Table Microsoft.Integration.D365Sales."CRM Uom"

Returns

Type Description
Boolean

UpdateCRMProductPriceIfNegative

procedure UpdateCRMProductPriceIfNegative(var CRMProduct: Record "CRM Product"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

Returns

Type Description
Boolean

UpdateCRMProductQuantityOnHandIfNegative

procedure UpdateCRMProductQuantityOnHandIfNegative(var CRMProduct: Record "CRM Product"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

Returns

Type Description
Boolean

UpdateCRMProductTypeCodeIfChanged

procedure UpdateCRMProductTypeCodeIfChanged(var CRMProduct: Record "CRM Product", NewProductTypeCode: Integer): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"
NewProductTypeCode Integer

Returns

Type Description
Boolean

UpdateCRMProductStateCodeIfChanged

procedure UpdateCRMProductStateCodeIfChanged(var CRMProduct: Record "CRM Product", NewBlocked: Boolean): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"
NewBlocked Boolean

Returns

Type Description
Boolean

UpdateItemBlockedIfChanged

procedure UpdateItemBlockedIfChanged(var Item: Record Item, NewBlocked: Boolean): Boolean

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
NewBlocked Boolean

Returns

Type Description
Boolean

UpdateResourceBlockedIfChanged

procedure UpdateResourceBlockedIfChanged(var Resource: Record Resource, NewBlocked: Boolean): Boolean

Parameters

Name Type Description
Resource Table Microsoft.Projects.Resources.Resource.Resource
NewBlocked Boolean

Returns

Type Description
Boolean

UpdateCRMProductUoMFieldsIfChanged

procedure UpdateCRMProductUoMFieldsIfChanged(var CRMProduct: Record "CRM Product", UnitOfMeasureCode: Code[10]): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"
UnitOfMeasureCode Code[10]

Returns

Type Description
Boolean

UpdateCRMProductUomscheduleId

procedure UpdateCRMProductUomscheduleId(var CRMProduct: Record "CRM Product", SourceRecordRef: RecordRef): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"
SourceRecordRef RecordRef

Returns

Type Description
Boolean

UpdateCRMProductVendorNameIfChanged

procedure UpdateCRMProductVendorNameIfChanged(var CRMProduct: Record "CRM Product"): Boolean

Parameters

Name Type Description
CRMProduct Table Microsoft.Integration.D365Sales."CRM Product"

Returns

Type Description
Boolean

UpdateOwnerIfChanged

procedure UpdateOwnerIfChanged(SourceRecordRef: RecordRef, DestinationRecordRef: RecordRef, SourceSalespersonCodeFieldNo: Integer, DestinationOwnerFieldNo: Integer, DestinationOwnerTypeFieldNo: Integer, DestinationOwnerTypeValue: Option): Boolean

Parameters

Name Type Description
SourceRecordRef RecordRef
DestinationRecordRef RecordRef
SourceSalespersonCodeFieldNo Integer
DestinationOwnerFieldNo Integer
DestinationOwnerTypeFieldNo Integer
DestinationOwnerTypeValue Option

Returns

Type Description
Boolean

UpdateContactOnModifyCustomer

procedure UpdateContactOnModifyCustomer(RecRef: RecordRef)

Parameters

Name Type Description
RecRef RecordRef

UpdateContactOnModifyVendor

procedure UpdateContactOnModifyVendor(RecRef: RecordRef)

Parameters

Name Type Description
RecRef RecordRef

FindContactRelatedCustomer

procedure FindContactRelatedCustomer(SourceRecordRef: RecordRef, var ContactBusinessRelation: Record "Contact Business Relation"): Boolean

Parameters

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

Returns

Type Description
Boolean

FindContactRelatedVendor

procedure FindContactRelatedVendor(SourceRecordRef: RecordRef, var ContactBusinessRelation: Record "Contact Business Relation"): Boolean

Parameters

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

Returns

Type Description
Boolean

UpdateSalesPersonCodeIfChanged

procedure UpdateSalesPersonCodeIfChanged(SourceRecordRef: RecordRef, var DestinationRecordRef: RecordRef, SourceOwnerIDFieldNo: Integer, SourceOwnerTypeFieldNo: Integer, AllowedOwnerTypeValue: Option, DestinationSalesPersonCodeFieldNo: Integer): Boolean

Parameters

Name Type Description
SourceRecordRef RecordRef
DestinationRecordRef RecordRef
SourceOwnerIDFieldNo Integer
SourceOwnerTypeFieldNo Integer
AllowedOwnerTypeValue Option
DestinationSalesPersonCodeFieldNo Integer

Returns

Type Description
Boolean

UpdateFieldRefValueIfChanged

procedure UpdateFieldRefValueIfChanged(var DestinationFieldRef: FieldRef, NewFieldValue: Text): Boolean

Parameters

Name Type Description
DestinationFieldRef FieldRef
NewFieldValue Text

Returns

Type Description
Boolean

GetValidCRMUnitOfMeasureRecords

procedure GetValidCRMUnitOfMeasureRecords(var CRMUom: Record "CRM Uom", var CRMUomschedule: Record "CRM Uomschedule", UnitOfMeasureCode: Code[10])

Parameters

Name Type Description
CRMUom Table Microsoft.Integration.D365Sales."CRM Uom"
CRMUomschedule Table Microsoft.Integration.D365Sales."CRM Uomschedule"
UnitOfMeasureCode Code[10]

GetNavCurrencyCode

procedure GetNavCurrencyCode(TransactionCurrencyId: Guid): Code[10]

Parameters

Name Type Description
TransactionCurrencyId Guid

Returns

Type Description
Code[10]

GetCRMTransactioncurrency

procedure GetCRMTransactioncurrency(CurrencyCode: Text): Guid

Parameters

Name Type Description
CurrencyCode Text

Returns

Type Description
Guid

ShowPage

procedure ShowPage(RecordID: RecordId)

Parameters

Name Type Description
RecordID RecordId

FindNewValueForSpecialMapping

procedure FindNewValueForSpecialMapping(SourceFieldRef: FieldRef, var NewValue: Variant): Boolean

Parameters

Name Type Description
SourceFieldRef FieldRef
NewValue Variant

Returns

Type Description
Boolean

FindPKByRecordID

procedure FindPKByRecordID(RecID: RecordId, var PrimaryKey: Variant): Boolean

Parameters

Name Type Description
RecID RecordId
PrimaryKey Variant

Returns

Type Description
Boolean

FindRecordIDByPK

procedure FindRecordIDByPK(TableID: Integer, PrimaryKey: Variant, var RecID: RecordId): Boolean

Parameters

Name Type Description
TableID Integer
PrimaryKey Variant
RecID RecordId

Returns

Type Description
Boolean

FindSourceIntegrationTableMapping

procedure FindSourceIntegrationTableMapping(var IntegrationTableMapping: Record "Integration Table Mapping", SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef): Boolean

Parameters

Name Type Description
IntegrationTableMapping Table Microsoft.Integration.SyncEngine."Integration Table Mapping"
SourceFieldRef FieldRef
DestinationFieldRef FieldRef

Returns

Type Description
Boolean

IsClearValueOnFailedSync

procedure IsClearValueOnFailedSync(SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef): Boolean

Parameters

Name Type Description
SourceFieldRef FieldRef
DestinationFieldRef FieldRef

Returns

Type Description
Boolean

AreFieldsRelatedToMappedTables

procedure AreFieldsRelatedToMappedTables(SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef, var IntegrationTableMapping: Record "Integration Table Mapping"): Boolean

Parameters

Name Type Description
SourceFieldRef FieldRef
DestinationFieldRef FieldRef
IntegrationTableMapping Table Microsoft.Integration.SyncEngine."Integration Table Mapping"

Returns

Type Description
Boolean

GetCoupledCDSUserId

procedure GetCoupledCDSUserId(SourceRecordRef: RecordRef): Guid

Parameters

Name Type Description
SourceRecordRef RecordRef

Returns

Type Description
Guid

ConvertBaseUnitOfMeasureToUomId

procedure ConvertBaseUnitOfMeasureToUomId(SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef, var NewValue: Variant)

Parameters

Name Type Description
SourceFieldRef FieldRef
DestinationFieldRef FieldRef
NewValue Variant

ConvertUomIdToBaseUnitOfMeasure

procedure ConvertUomIdToBaseUnitOfMeasure(SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef, var NewValue: Variant)

Parameters

Name Type Description
SourceFieldRef FieldRef
DestinationFieldRef FieldRef
NewValue Variant

PrefixUnitGroupCode

procedure PrefixUnitGroupCode(SourceFieldRef: FieldRef, var NewValue: Variant)

Parameters

Name Type Description
SourceFieldRef FieldRef
NewValue Variant

ConvertTableToOption

procedure ConvertTableToOption(SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef, var OptionValue: Integer): Boolean

Parameters

Name Type Description
SourceFieldRef FieldRef
DestinationFieldRef FieldRef
OptionValue Integer

Returns

Type Description
Boolean

ConvertOptionToTable

procedure ConvertOptionToTable(SourceFieldRef: FieldRef, DestinationFieldRef: FieldRef, var TableValue: Text): Boolean

Parameters

Name Type Description
SourceFieldRef FieldRef
DestinationFieldRef FieldRef
TableValue Text

Returns

Type Description
Boolean

UpdateCDSOptionMapping

procedure UpdateCDSOptionMapping(OldRecId: RecordId, NewRecId: RecordId)

Parameters

Name Type Description
OldRecId RecordId
NewRecId RecordId

TransformValue

procedure TransformValue(SourceRecordRef: RecordRef, DestinationRecordRef: RecordRef, TransformationRule: Record "Transformation Rule", SourceFieldNo: Integer, DestinationFieldNo: Integer)

Parameters

Name Type Description
SourceRecordRef RecordRef
DestinationRecordRef RecordRef
TransformationRule Table System.IO."Transformation Rule"
SourceFieldNo Integer
DestinationFieldNo Integer

Events

OnAfterGetFieldRelation

[IntegrationEvent(False,False)]
local procedure OnAfterGetFieldRelation(RecRef: RecordRef, FldRef: FieldRef, var TableID: Integer)

Parameters

Name Type Description
RecRef RecordRef
FldRef FieldRef
TableID Integer

OnGetCDSBaseCurrencyId

[IntegrationEvent(False,False)]
local procedure OnGetCDSBaseCurrencyId(var BaseCurrencyId: Guid, var handled: Boolean)

Parameters

Name Type Description
BaseCurrencyId Guid
handled Boolean

OnGetCDSOwnershipModel

[IntegrationEvent(False,False)]
procedure OnGetCDSOwnershipModel(var OwnershipModel: Option, var handled: Boolean)

Parameters

Name Type Description
OwnershipModel Option
handled Boolean

OnGetCDSBaseCurrencySymbol

[IntegrationEvent(False,False)]
local procedure OnGetCDSBaseCurrencySymbol(var BaseCurrencySymbol: Text[5], var handled: Boolean)

Parameters

Name Type Description
BaseCurrencySymbol Text[5]
handled Boolean

OnGetCDSBaseCurrencyPrecision

[IntegrationEvent(False,False)]
local procedure OnGetCDSBaseCurrencyPrecision(var BaseCurrencyPrecision: Integer, var handled: Boolean)

Parameters

Name Type Description
BaseCurrencyPrecision Integer
handled Boolean

OnGetCDSCurrencyDecimalPrecision

[IntegrationEvent(False,False)]
local procedure OnGetCDSCurrencyDecimalPrecision(var CurrencyDecimalPrecision: Integer, var handled: Boolean)

Parameters

Name Type Description
CurrencyDecimalPrecision Integer
handled Boolean

OnGetVendorSyncEnabled

[IntegrationEvent(False,False)]
local procedure OnGetVendorSyncEnabled(var Enabled: Boolean)

Parameters

Name Type Description
Enabled Boolean

OnGetIsContactBusinessRelationOptional

[IntegrationEvent(False,False)]
local procedure OnGetIsContactBusinessRelationOptional(var Optional: Boolean)

Parameters

Name Type Description
Optional Boolean

OnGetIsContactTypeCheckIgnored

[IntegrationEvent(False,False)]
local procedure OnGetIsContactTypeCheckIgnored(var Ignored: Boolean)

Parameters

Name Type Description
Ignored Boolean

OnFindAndSynchRecordIDFromIntegrationSystemId

[IntegrationEvent(False,False)]
local procedure OnFindAndSynchRecordIDFromIntegrationSystemId(IntegrationSystemId: Guid, TableId: Integer, var LocalRecordID: RecordId, var IsHandled: Boolean)

Parameters

Name Type Description
IntegrationSystemId Guid
TableId Integer
LocalRecordID RecordId
IsHandled Boolean

OnUpdateCRMInvoiceStatusFromEntryOnBeforeModify

[IntegrationEvent(False,False)]
local procedure OnUpdateCRMInvoiceStatusFromEntryOnBeforeModify(var CRMInvoice: Record "CRM Invoice", var NewCRMInvoice: Record "CRM Invoice", CustLedgerEntry: Record "Cust. Ledger Entry")

Parameters

Name Type Description
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
NewCRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"

OnUpdateCRMInvoiceStatusFromEntryOnBeforeCheckFieldsChanged

[IntegrationEvent(False,False)]
local procedure OnUpdateCRMInvoiceStatusFromEntryOnBeforeCheckFieldsChanged(var CRMInvoice: Record "CRM Invoice", var NewCRMInvoice: Record "CRM Invoice", CustLedgerEntry: Record "Cust. Ledger Entry", var ChangeNeeded: Boolean)

Parameters

Name Type Description
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
NewCRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
ChangeNeeded Boolean

OnBeforeCalculateActualStatusCode

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculateActualStatusCode(CustLedgerEntry: Record "Cust. Ledger Entry", var CRMInvoice: Record "CRM Invoice", var IsHandled: Boolean)

Parameters

Name Type Description
CustLedgerEntry Table Microsoft.Sales.Receivables."Cust. Ledger Entry"
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
IsHandled Boolean

OnConvertOptionToTableOnBeforeSetRangeForIntegrationFieldID

[IntegrationEvent(False,False)]
local procedure OnConvertOptionToTableOnBeforeSetRangeForIntegrationFieldID(var CRMOptionMapping: Record "CRM Option Mapping", SourceFieldRef: FieldRef, var IsHandled: Boolean)

Parameters

Name Type Description
CRMOptionMapping Table Microsoft.Integration.Dataverse."CRM Option Mapping"
SourceFieldRef FieldRef
IsHandled Boolean

OnCancelCRMInvoiceOnBeforeModifyCRMInvoice

[IntegrationEvent(False,False)]
local procedure OnCancelCRMInvoiceOnBeforeModifyCRMInvoice(var CRMInvoice: Record "CRM Invoice", var NewCRMInvoice: Record "CRM Invoice")

Parameters

Name Type Description
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
NewCRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"

OnCancelCRMInvoiceOnBeforeCheckFieldsChanged

[IntegrationEvent(False,False)]
local procedure OnCancelCRMInvoiceOnBeforeCheckFieldsChanged(var CRMInvoice: Record "CRM Invoice", var NewCRMInvoice: Record "CRM Invoice", var ChangeNeeded: Boolean)

Parameters

Name Type Description
CRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
NewCRMInvoice Table Microsoft.Integration.D365Sales."CRM Invoice"
ChangeNeeded Boolean

OnBeforeFulfillSalesOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeFulfillSalesOrder(var SalesOrderId: Guid)

Parameters

Name Type Description
SalesOrderId Guid

OnFailedFindContactByAccountId

[IntegrationEvent(False,False)]
local procedure OnFailedFindContactByAccountId(DestinationContactRecordRef: RecordRef, var CompanyContact: Record Contact, AccountID: Guid, var OutOfMapFilter: Boolean, var Result: Boolean)

Parameters

Name Type Description
DestinationContactRecordRef RecordRef
CompanyContact Table Microsoft.CRM.Contact.Contact
AccountID Guid
OutOfMapFilter Boolean
Result Boolean

See also