Table "Default Dimension"
Table Default Dimension (ID 352). Stores default dimension value assignments for master data records. These defaults are automatically applied when creating transactions involving the associated record.
Properties
| Name | Value |
|---|---|
| Caption | Default Dimension |
| LookupPageID | Page Microsoft.Finance.Dimension."Default Dimensions" |
| DataClassification | CustomerContent |
Fields
| Name | Type | Description |
|---|---|---|
| "Table ID" | Integer | The table ID of the master data record for which this default dimension applies. Only specific tables that support dimensions can be used here. |
| "No." | Code[20] | The primary key value of the record in the table specified by Table ID. This links the default dimension to a specific master data record. |
| "Dimension Code" | Code[20] | The dimension code that this default value applies to. Must reference an existing dimension that is not blocked. |
| "Dimension Value Code" | Code[20] | The default dimension value code to be applied. Must reference an existing, unblocked dimension value for the specified dimension. Can be left blank depending on the Value Posting setting. |
| "Value Posting" | Enum Microsoft.Finance.Dimension."Default Dimension Value Posting Type" | Controls how the dimension value is handled during posting. Determines whether the dimension value is required, optional, prohibited, or must match a specific value. |
| "Table Caption" | Text[250] | Calculated field that displays the caption of the table associated with this default dimension. Provides a user-friendly name for the table ID. |
| "Multi Selection Action" | Option | Used in multi-selection scenarios to specify the action to perform on multiple default dimension records. Supports changing or deleting multiple records at once. |
| "Parent Type" | Enum Microsoft.Finance.Dimension."Default Dimension Parent Type" | Indicates the hierarchical relationship type for this default dimension. Used to organize default dimensions in parent-child relationships for complex setups. |
| "Allowed Values Filter" | Text[250] | Filter that restricts which dimension values can be used for this default dimension. When specified, only dimension values matching this filter are available for selection. |
| "Dimension Value Name" | Text[50] | Flow field that displays the name of the selected dimension value. Automatically populated from the Dimension Value table for user convenience. |
| ParentId | Guid | System identifier linking this default dimension to its parent master data record. Used for API integration and maintaining referential integrity across table relationships. |
| DimensionId | Guid | System identifier linking this default dimension to the dimension record. Used for API integration and maintaining referential integrity with the parent dimension. |
| DimensionValueId | Guid | System identifier linking this default dimension to the dimension value record. Used for API integration and maintaining referential integrity with the dimension value. |
| 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
GetCaption
Generates a descriptive caption for the default dimension record. Returns a formatted text showing the table name and record number for user identification.
procedure GetCaption(): Text[250]
Returns
| Type | Description |
|---|---|
| Text[250] |
The formatted caption text combining source table name and record number. |
UpdateGlobalDimCode
Updates global dimension codes in master data records when default dimension values change. Synchronizes global dimension values across tables when dimension posting requirements change.
procedure UpdateGlobalDimCode(GlobalDimCodeNo: Integer; TableID: Integer; AccNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
The global dimension number (1-8) being updated. |
| TableID | Integer |
The table ID of the master data record to update. |
| AccNo | Code[20] |
The account or record number to update. |
| NewDimValue | Code[20] |
The new dimension value to assign to the global dimension field. |
ClearAllowedValuesFilter
Clears the allowed values filter and related dimension value per account records. Called when changing from Code Mandatory posting type to allow unrestricted dimension value selection.
procedure ClearAllowedValuesFilter(var DimValuePerAccount: Record "Dim. Value per Account")
Parameters
| Name | Type | Description |
|---|---|---|
| DimValuePerAccount | Table Microsoft.Finance.Dimension."Dim. Value per Account" |
Record variable for accessing dimension value per account data. |
CreateDimValuePerAccountFromDimValue
Creates or updates a dimension value per account record from a dimension value. Sets the Allowed flag to the value of ShouldUpdateAllowed.
procedure CreateDimValuePerAccountFromDimValue(DimValue: Record "Dimension Value"; ShouldUpdateAllowed: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DimValue | Table Microsoft.Finance.Dimension."Dimension Value" |
The dimension value to create the account-specific record from. |
| ShouldUpdateAllowed | Boolean |
The value to set on the Allowed field of the dimension value per account record. |
AddDimensionValueToAllowedFilter
Adds a dimension value to the allowed values filter without rebuilding from Dim. Value per Account records. Appends the value code to the filter text if not already covered by the existing filter.
procedure AddDimensionValueToAllowedFilter(DimValueCode: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| DimValueCode | Code[20] |
The dimension value code to add to the allowed values filter. |
IncludedInAllowedValuesFilter
Checks whether a dimension value per account record is included in the allowed values filter. Returns true if the dimension value matches the current allowed values filter criteria.
procedure IncludedInAllowedValuesFilter(DimValuePerAccount: Record "Dim. Value per Account"): Boolean
Parameters
| Name | Type | Description |
|---|---|---|
| DimValuePerAccount | Table Microsoft.Finance.Dimension."Dim. Value per Account" |
The dimension value per account record to check against the filter. |
Returns
| Type | Description |
|---|---|
| Boolean |
True if the dimension value is included in the allowed values filter; false otherwise. |
UpdateDimValuesPerAccountFromAllowedValuesFilter
Updates dimension values per account records based on the allowed values filter. Synchronizes the allowed dimension values list with the current filter criteria.
procedure UpdateDimValuesPerAccountFromAllowedValuesFilter(var DimValuePerAccount: Record "Dim. Value per Account")
Parameters
| Name | Type | Description |
|---|---|---|
| DimValuePerAccount | Table Microsoft.Finance.Dimension."Dim. Value per Account" |
Record variable for managing dimension value per account records. |
CheckDisallowedDimensionValue
Validates that a dimension value is not disallowed for use with this default dimension. Prevents assignment of dimension values that are restricted by the allowed values filter.
procedure CheckDisallowedDimensionValue(DimValuePerAccount: Record "Dim. Value per Account")
Parameters
| Name | Type | Description |
|---|---|---|
| DimValuePerAccount | Table Microsoft.Finance.Dimension."Dim. Value per Account" |
The dimension value per account record to validate. |
UpdateDefaultDimensionAllowedValuesFilter
Updates the allowed values filter field based on currently allowed dimension values. Rebuilds the filter string from dimension value per account records marked as allowed.
procedure UpdateDefaultDimensionAllowedValuesFilter()
GetAllowedValuesFilter
Returns the allowed values filter as a text string truncated to field length. Provides the current filter that restricts dimension value selection for this default dimension.
procedure GetAllowedValuesFilter(): Text[250]
Returns
| Type | Description |
|---|---|
| Text[250] |
The allowed values filter string truncated to the maximum field length. |
GetFullAllowedValuesFilter
Returns the complete allowed values filter without length restrictions. Generates a filter string from all allowed dimension values for this default dimension.
procedure GetFullAllowedValuesFilter(var DimValuePerAccount: Record "Dim. Value per Account"): Text
Parameters
| Name | Type | Description |
|---|---|---|
| DimValuePerAccount | Table Microsoft.Finance.Dimension."Dim. Value per Account" |
Record variable for accessing dimension value per account data. |
Returns
| Type | Description |
|---|---|
| Text |
The complete allowed values filter string without truncation. |
UpdateParentType
Updates the parent type field based on the current table ID. Maps specific table IDs to their corresponding parent type enum values.
procedure UpdateParentType(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the parent type was changed; false if it remained the same. |
UpdateParentId
Updates the parent ID field based on the current table ID and record number. Links the default dimension to the correct master data record using system IDs.
procedure UpdateParentId(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if the parent ID was changed; false if it remained the same. |
UpdateReferencedIds
Updates all referenced ID fields and modifies the record if any changes occurred. Ensures system IDs are synchronized with the current dimension and parent record references.
procedure UpdateReferencedIds()
UpdateReferencedIdFields
Updates all referenced ID fields and returns whether any changes were made. Coordinates updates to parent ID, parent type, dimension ID, and dimension value ID fields.
procedure UpdateReferencedIdFields(): Boolean
Returns
| Type | Description |
|---|---|
| Boolean |
True if any referenced ID fields were modified; false otherwise. |
Events
OnAfterUpdateGlobalDimCode
Integration event raised after updating global dimension codes in master data records. Allows extensions to perform additional processing after global dimension synchronization.
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateGlobalDimCode(GlobalDimCodeNo: Integer; TableID: Integer; AccNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
The global dimension number (1-8) that was updated. |
| TableID | Integer |
The table ID of the master data record that was updated. |
| AccNo | Code[20] |
The account or record number that was updated. |
| NewDimValue | Code[20] |
The new dimension value that was assigned. |
OnAfterSetRangeToLastFieldInPrimaryKey
Integration event raised after setting range filters to the last field in primary key operations. Allows extensions to customize record filtering behavior during key-based searches.
[IntegrationEvent(False,False)]
local procedure OnAfterSetRangeToLastFieldInPrimaryKey(RecRef: RecordRef; Value: Code[20]; var FieldRef: FieldRef)
Parameters
| Name | Type | Description |
|---|---|---|
| RecRef | RecordRef |
The record reference being filtered. |
| Value | Code[20] |
The value being used for the range filter. |
| FieldRef | FieldRef |
The field reference for the last primary key field. |
OnBeforeValidateNo
Integration event raised before validating the No. field in default dimension records. Allows extensions to implement custom validation logic or skip standard validation.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateNo(DefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
The default dimension record being validated. |
| IsHandled | Boolean |
Set to true to skip standard validation processing. |
OnBeforeUpdateGlobalDimCode
Integration event raised before updating global dimension codes in master data records. Allows extensions to implement custom update logic or prevent standard updates.
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateGlobalDimCode(GlobalDimCodeNo: Integer; TableID: Integer; AccNo: Code[20]; NewDimValue: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
The global dimension number (1-8) being updated. |
| TableID | Integer |
The table ID of the master data record to update. |
| AccNo | Code[20] |
The account or record number to update. |
| NewDimValue | Code[20] |
The new dimension value to assign. |
| IsHandled | Boolean |
Set to true to skip standard update processing. |
OnBeforeOnDelete
Integration event raised before deleting a default dimension record. Allows extensions to perform custom validation or cleanup before deletion.
[IntegrationEvent(False,False)]
local procedure OnBeforeOnDelete(var DefaultDimension: Record "Default Dimension"; var DimensionManagement: Codeunit DimensionManagement; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
The default dimension record being deleted. |
| DimensionManagement | Codeunit Microsoft.Finance.Dimension.DimensionManagement |
The dimension management codeunit instance. |
| IsHandled | Boolean |
Set to true to skip standard deletion processing. |
OnBeforeOnInsert
Integration event raised before inserting a default dimension record. Allows extensions to perform custom validation or initialization before insertion.
[IntegrationEvent(False,False)]
local procedure OnBeforeOnInsert(var DefaultDimension: Record "Default Dimension"; var DimensionManagement: Codeunit DimensionManagement; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
The default dimension record being inserted. |
| DimensionManagement | Codeunit Microsoft.Finance.Dimension.DimensionManagement |
The dimension management codeunit instance. |
| IsHandled | Boolean |
Set to true to skip standard insertion processing. |
OnBeforeOnModify
Integration event raised before modifying a default dimension record. Allows extensions to perform custom validation or processing before modification.
[IntegrationEvent(False,False)]
local procedure OnBeforeOnModify(var DefaultDimension: Record "Default Dimension"; var DimensionManagement: Codeunit DimensionManagement; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
The default dimension record being modified. |
| DimensionManagement | Codeunit Microsoft.Finance.Dimension.DimensionManagement |
The dimension management codeunit instance. |
| IsHandled | Boolean |
Set to true to skip standard modification processing. |
OnBeforeOnRename
Integration event raised before renaming a default dimension record. Allows extensions to perform custom validation or prevent rename operations.
[IntegrationEvent(False,False)]
local procedure OnBeforeOnRename(var DefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| DefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
The default dimension record being renamed. |
| IsHandled | Boolean |
Set to true to skip standard rename processing. |
OnUpdateGLAccGlobalDimCodeOnCaseElse
Integration event raised for non-standard global dimension code updates on G/L accounts. Allows extensions to handle global dimension updates beyond dimensions 1 and 2.
[IntegrationEvent(False,False)]
local procedure OnUpdateGLAccGlobalDimCodeOnCaseElse(GlobalDimCodeNo: Integer; GLAccNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
The global dimension number being updated. |
| GLAccNo | Code[20] |
The G/L account number to update. |
| NewDimValue | Code[20] |
The new dimension value to assign. |
OnUpdateGLAccGlobalDimCodeOnBeforeGLAccModify
Integration event raised before modifying G/L account global dimension codes. Allows extensions to customize G/L account updates during global dimension synchronization.
[IntegrationEvent(False,False)]
local procedure OnUpdateGLAccGlobalDimCodeOnBeforeGLAccModify(var GLAcc: Record "G/L Account"; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| GLAcc | Table Microsoft.Finance.GeneralLedger.Account."G/L Account" |
The G/L account record being modified. |
| NewDimValue | Code[20] |
The new dimension value being assigned. |
| GlobalDimCodeNo | Integer |
The global dimension number being updated. |
OnUpdateBankGlobalDimCodeCaseElse
Integration event raised for non-standard global dimension code updates on bank accounts. Allows extensions to handle global dimension updates beyond dimensions 1 and 2.
[IntegrationEvent(False,False)]
local procedure OnUpdateBankGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; BankAccNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
The global dimension number being updated. |
| BankAccNo | Code[20] |
The bank account number to update. |
| NewDimValue | Code[20] |
The new dimension value to assign. |
OnUpdateBankGlobalDimCodeOnBeforeBankModify
Integration event raised before modifying bank account record during global dimension code update. Enables custom logic before bank account dimension values are updated.
[IntegrationEvent(False,False)]
local procedure OnUpdateBankGlobalDimCodeOnBeforeBankModify(var BankAccount: Record "Bank Account"; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| BankAccount | Table Microsoft.Bank.BankAccount."Bank Account" |
Bank account record being modified |
| NewDimValue | Code[20] |
New dimension value being assigned |
| GlobalDimCodeNo | Integer |
Global dimension number being updated |
OnUpdateCampaignGlobalDimCodeCaseElse
Integration event raised for additional global dimension code updates on campaigns beyond global dimensions 1 and 2. Enables custom dimension management for campaign records when shortcut dimensions are updated.
[IntegrationEvent(False,False)]
local procedure OnUpdateCampaignGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; CampaignNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (3-8) |
| CampaignNo | Code[20] |
Campaign number being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateCustGlobalDimCodeOnCaseElse
Integration event raised for additional global dimension code updates on customers beyond global dimensions 1 and 2. Enables custom dimension management for customer records when shortcut dimensions are updated.
[IntegrationEvent(False,False)]
local procedure OnUpdateCustGlobalDimCodeOnCaseElse(GlobalDimCodeNo: Integer; CustNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (3-8) |
| CustNo | Code[20] |
Customer number being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateCustGlobalDimCodeOnBeforeCustModify
Integration event raised before modifying customer record during global dimension code update. Enables custom logic before customer dimension values are updated.
[IntegrationEvent(False,False)]
local procedure OnUpdateCustGlobalDimCodeOnBeforeCustModify(var Customer: Record Customer; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Customer | Table Microsoft.Sales.Customer.Customer |
Customer record being modified |
| NewDimValue | Code[20] |
New dimension value being assigned |
| GlobalDimCodeNo | Integer |
Global dimension number being updated |
OnUpdateCustomerTemplGlobalDimCodeCaseElse
Integration event raised for additional global dimension code updates on customer templates beyond global dimensions 1 and 2. Enables custom dimension management for customer template records when shortcut dimensions are updated.
[IntegrationEvent(False,False)]
local procedure OnUpdateCustomerTemplGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; CustomerTemplCode: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (3-8) |
| CustomerTemplCode | Code[20] |
Customer template code being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateEmpoyeeGlobalDimCodeCaseElse
Integration event raised when updating employee global dimension codes for non-standard dimension numbers. Enables custom handling of global dimension updates beyond the standard two global dimensions.
[IntegrationEvent(False,False)]
local procedure OnUpdateEmpoyeeGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; EmployeeNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (typically 3-8) |
| EmployeeNo | Code[20] |
Employee number being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateEmployeeGlobalDimCodeOnBeforeEmployeeModify
Integration event raised before modifying employee record during global dimension update. Allows customization of employee record before dimension value assignment.
[IntegrationEvent(False,False)]
local procedure OnUpdateEmployeeGlobalDimCodeOnBeforeEmployeeModify(var Employee: Record Employee; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Employee | Table Microsoft.HumanResources.Employee.Employee |
Employee record being modified |
| NewDimValue | Code[20] |
New dimension value being assigned |
| GlobalDimCodeNo | Integer |
Global dimension number being updated |
OnUpdateEmployeeTemplGlobalDimCodeCaseElse
Integration event raised when updating employee template global dimension codes for non-standard dimension numbers. Enables custom handling of global dimension updates for employee templates.
[IntegrationEvent(False,False)]
local procedure OnUpdateEmployeeTemplGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; EmployeeTemplCode: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (typically 3-8) |
| EmployeeTemplCode | Code[20] |
Employee template code being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateFAGlobalDimCodeCaseElse
Integration event raised when updating fixed asset global dimension codes for non-standard dimension numbers. Enables custom handling of global dimension updates for fixed assets.
[IntegrationEvent(False,False)]
local procedure OnUpdateFAGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; FANo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (typically 3-8) |
| FANo | Code[20] |
Fixed asset number being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateFAGlobalDimCodeOnBeforeFAModify
Integration event raised before modifying fixed asset record during global dimension update. Allows customization of fixed asset record before dimension value assignment.
[IntegrationEvent(False,False)]
local procedure OnUpdateFAGlobalDimCodeOnBeforeFAModify(var FixedAsset: Record "Fixed Asset"; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| FixedAsset | Table Microsoft.FixedAssets.FixedAsset."Fixed Asset" |
Fixed asset record being modified |
| NewDimValue | Code[20] |
New dimension value being assigned |
| GlobalDimCodeNo | Integer |
Global dimension number being updated |
OnUpdateInsuranceGlobalDimCodeCaseElse
Integration event raised when updating insurance global dimension codes for non-standard dimension numbers. Enables custom handling of global dimension updates for insurance records.
[IntegrationEvent(False,False)]
local procedure OnUpdateInsuranceGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; InsuranceNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (typically 3-8) |
| InsuranceNo | Code[20] |
Insurance number being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateInsuranceGlobalDimCodeOnBeforeInsuranceModify
Integration event raised before modifying insurance record during global dimension update. Allows customization of insurance record before dimension value assignment.
[IntegrationEvent(False,False)]
local procedure OnUpdateInsuranceGlobalDimCodeOnBeforeInsuranceModify(var Insurance: Record Insurance; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Insurance | Table Microsoft.FixedAssets.Insurance.Insurance |
Insurance record being modified |
| NewDimValue | Code[20] |
New dimension value being assigned |
| GlobalDimCodeNo | Integer |
Global dimension number being updated |
OnUpdateItemGlobalDimCodeOnCaseElse
Integration event raised when updating item global dimension codes for non-standard dimension numbers. Enables custom handling of global dimension updates for items.
[IntegrationEvent(False,False)]
local procedure OnUpdateItemGlobalDimCodeOnCaseElse(GlobalDimCodeNo: Integer; ItemNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (typically 3-8) |
| ItemNo | Code[20] |
Item number being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateItemGlobalDimCodeOnBeforeItemModify
Integration event raised before modifying item record during global dimension update. Allows customization of item record before dimension value assignment.
[IntegrationEvent(False,False)]
local procedure OnUpdateItemGlobalDimCodeOnBeforeItemModify(var Item: Record Item; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Item | Table Microsoft.Inventory.Item.Item |
Item record being modified |
| NewDimValue | Code[20] |
New dimension value being assigned |
| GlobalDimCodeNo | Integer |
Global dimension number being updated |
OnUpdateItemTemplGlobalDimCodeCaseElse
Integration event raised when updating item template global dimension codes for non-standard dimension numbers. Enables custom handling of global dimension updates for item templates.
[IntegrationEvent(False,False)]
local procedure OnUpdateItemTemplGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; ItemTemplCode: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension number being updated (typically 3-8) |
| ItemTemplCode | Code[20] |
Item template code being updated |
| NewDimValue | Code[20] |
New dimension value code to assign |
OnUpdateJobGlobalDimCodeCaseElse
Integration event raised when updating job global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateJobGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; JobNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| JobNo | Code[20] |
Job number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateJobGlobalDimCodeOnBeforeJobModify
Integration event raised before modifying job record when updating global dimension code.
[IntegrationEvent(False,False)]
local procedure OnUpdateJobGlobalDimCodeOnBeforeJobModify(var Job: Record Job; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Job | Table Microsoft.Projects.Project.Job.Job |
Job record being modified |
| NewDimValue | Code[20] |
New dimension value to assign |
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
OnUpdateNeutrRevGlobalDimCodeCaseElse
Integration event raised when updating neutral revenue global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateNeutrRevGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; CFManualRevenueNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| CFManualRevenueNo | Code[20] |
Cash flow manual revenue number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateNeutrPayGlobalDimCodeCaseElse
Integration event raised when updating neutral payment global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateNeutrPayGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; CFManualExpenseNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| CFManualExpenseNo | Code[20] |
Cash flow manual expense number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateResGrGlobalDimCodeOnCaseElse
Integration event raised when updating resource group global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateResGrGlobalDimCodeOnCaseElse(GlobalDimCodeNo: Integer; ResGrNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| ResGrNo | Code[20] |
Resource group number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateResGrGlobalDimCodeOnBeforeResGrModify
Integration event raised before modifying resource group record when updating global dimension code.
[IntegrationEvent(False,False)]
local procedure OnUpdateResGrGlobalDimCodeOnBeforeResGrModify(var ResGr: Record "Resource Group"; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| ResGr | Table Microsoft.Projects.Resources.Resource."Resource Group" |
Resource group record being modified |
| NewDimValue | Code[20] |
New dimension value to assign |
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
OnUpdateResGlobalDimCodeCaseElse
Integration event raised when updating resource global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateResGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; ResNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| ResNo | Code[20] |
Resource number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateResGlobalDimCodeOnBeforeResModify
Integration event raised before modifying resource record when updating global dimension code.
[IntegrationEvent(False,False)]
local procedure OnUpdateResGlobalDimCodeOnBeforeResModify(var Resource: Record Resource; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Resource | Table Microsoft.Projects.Resources.Resource.Resource |
Resource record being modified |
| NewDimValue | Code[20] |
New dimension value to assign |
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
OnUpdateRespCenterGlobalDimCodeCaseElse
Integration event raised when updating responsibility center global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateRespCenterGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; RespCenterNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| RespCenterNo | Code[20] |
Responsibility center number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateRespCenterGlobalDimCodeOnBeforeRespCenterModify
Integration event raised before modifying responsibility center record when updating global dimension code.
[IntegrationEvent(False,False)]
local procedure OnUpdateRespCenterGlobalDimCodeOnBeforeRespCenterModify(var RespCenter: Record "Responsibility Center"; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| RespCenter | Table Microsoft.Inventory.Location."Responsibility Center" |
Responsibility center record being modified |
| NewDimValue | Code[20] |
New dimension value to assign |
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
OnUpdateSalesPurchGlobalDimCodeCaseElse
Integration event raised when updating salesperson/purchaser global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateSalesPurchGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; SalespersonPurchaserNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| SalespersonPurchaserNo | Code[20] |
Salesperson/purchaser number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateVendGlobalDimCodeOnCaseElse
Integration event raised when updating vendor global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateVendGlobalDimCodeOnCaseElse(GlobalDimCodeNo: Integer; VendNo: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| VendNo | Code[20] |
Vendor number being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnUpdateVendGlobalDimCodeOnBeforeVendModify
Integration event raised before modifying vendor record when updating global dimension code.
[IntegrationEvent(False,False)]
local procedure OnUpdateVendGlobalDimCodeOnBeforeVendModify(var Vend: Record Vendor; NewDimValue: Code[20]; GlobalDimCodeNo: Integer)
Parameters
| Name | Type | Description |
|---|---|---|
| Vend | Table Microsoft.Purchases.Vendor.Vendor |
Vendor record being modified |
| NewDimValue | Code[20] |
New dimension value to assign |
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
OnUpdateVendorTemplGlobalDimCodeCaseElse
Integration event raised when updating vendor template global dimension code for cases not handled by standard processing.
[IntegrationEvent(False,False)]
local procedure OnUpdateVendorTemplGlobalDimCodeCaseElse(GlobalDimCodeNo: Integer; VendorTemplCode: Code[20]; NewDimValue: Code[20])
Parameters
| Name | Type | Description |
|---|---|---|
| GlobalDimCodeNo | Integer |
Global dimension code number being updated |
| VendorTemplCode | Code[20] |
Vendor template code being updated |
| NewDimValue | Code[20] |
New dimension value to assign |
OnBeforeSetRangeToLastFieldInPrimaryKey
Integration event raised before setting range filter to the last field in primary key during default dimension validation. Enables custom field identification logic and primary key range filtering.
[IntegrationEvent(False,False)]
local procedure OnBeforeSetRangeToLastFieldInPrimaryKey(RecRef: RecordRef; Value: Code[20]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| RecRef | RecordRef |
Record reference for the table being processed |
| Value | Code[20] |
Field value to set as range filter |
| IsHandled | Boolean |
Set to true to skip standard range setting logic |
OnGetCaptionOnAfterAssignNewNo
Integration event raised after assigning new table number during caption generation. Enables custom caption formatting and table name resolution for specialized tables.
[IntegrationEvent(False,False)]
local procedure OnGetCaptionOnAfterAssignNewNo(NewTableID: Integer; SourceTableName: Text[250]; NewNo: Code[20]; var Result: Text[250]; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| NewTableID | Integer |
Table ID being processed for caption generation |
| SourceTableName | Text[250] |
Original table name before processing |
| NewNo | Code[20] |
New identifier assigned to the table |
| Result | Text[250] |
Generated caption result that can be modified |
| IsHandled | Boolean |
Set to true to use custom caption result |
OnBeforeValidateTableID
Integration event raised before validating Table ID field assignment. Enables custom table ID validation logic and table existence verification.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateTableID(var RecDefaultDimension: Record "Default Dimension"; xRecDefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| RecDefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
Default dimension record being validated |
| xRecDefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
Previous version of default dimension record |
| IsHandled | Boolean |
Set to true to skip standard table ID validation |
OnBeforeValidateAllowedValuesFilter
Integration event raised before validating Allowed Values Filter field assignment. Enables custom filter validation logic and dimension value constraint verification.
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateAllowedValuesFilter(var RecDefaultDimension: Record "Default Dimension"; xRecDefaultDimension: Record "Default Dimension"; var IsHandled: Boolean)
Parameters
| Name | Type | Description |
|---|---|---|
| RecDefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
Default dimension record being validated |
| xRecDefaultDimension | Table Microsoft.Finance.Dimension."Default Dimension" |
Previous version of default dimension record |
| IsHandled | Boolean |
Set to true to skip standard allowed values filter validation |
OnUpdateDefaultDimensionAllowedValuesFilterOnAfterGetAllowedValuesFilter
Integration event raised after retrieving allowed values filter for default dimension validation. Enables custom logic to modify or replace the allowed values filter used during validation.
[IntegrationEvent(False,False)]
local procedure OnUpdateDefaultDimensionAllowedValuesFilterOnAfterGetAllowedValuesFilter(var AllowedValues: Text[250])
Parameters
| Name | Type | Description |
|---|---|---|
| AllowedValues | Text[250] |
The allowed values filter string that can be modified by event subscribers. |