Codeunit "Item Attribute Management"

ID 7500
Namespace: Microsoft.Inventory.Item.Attribute

Methods

FindItemsByAttribute

procedure FindItemsByAttribute(var FilterItemAttributesBuffer: Record "Filter Item Attributes Buffer"): Text

Parameters

Name Type Description
FilterItemAttributesBuffer Table Microsoft.Inventory.Item.Attribute."Filter Item Attributes Buffer"

Returns

Type Description
Text

FindItemsByAttributes

procedure FindItemsByAttributes(var FilterItemAttributesBuffer: Record "Filter Item Attributes Buffer", var TempFilteredItem: Record Item temporary)

Parameters

Name Type Description
FilterItemAttributesBuffer Table Microsoft.Inventory.Item.Attribute."Filter Item Attributes Buffer"
TempFilteredItem Table Microsoft.Inventory.Item.Item

GetItemNoFilterText

procedure GetItemNoFilterText(var TempFilteredItem: Record Item temporary, var ParameterCount: Integer): Text

Parameters

Name Type Description
TempFilteredItem Table Microsoft.Inventory.Item.Item
ParameterCount Integer

Returns

Type Description
Text

InheritAttributesFromItemCategory

procedure InheritAttributesFromItemCategory(var Item: Record Item, NewItemCategoryCode: Code[20], OldItemCategoryCode: Code[20])

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
NewItemCategoryCode Code[20]
OldItemCategoryCode Code[20]

UpdateCategoryAttributesAfterChangingParentCategory

procedure UpdateCategoryAttributesAfterChangingParentCategory(ItemCategoryCode: Code[20], NewParentItemCategory: Code[20], OldParentItemCategory: Code[20])

Parameters

Name Type Description
ItemCategoryCode Code[20]
NewParentItemCategory Code[20]
OldParentItemCategory Code[20]

DeleteItemAttributeValueMapping

procedure DeleteItemAttributeValueMapping(Item: Record Item, var TempItemAttributeValueToRemove: Record "Item Attribute Value" temporary)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
TempItemAttributeValueToRemove Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"

UpdateCategoryItemsAttributeValueMapping

procedure UpdateCategoryItemsAttributeValueMapping(var TempNewItemAttributeValue: Record "Item Attribute Value" temporary, var TempOldItemAttributeValue: Record "Item Attribute Value" temporary, ItemCategoryCode: Code[20], OldItemCategoryCode: Code[20])

Parameters

Name Type Description
TempNewItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
TempOldItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
ItemCategoryCode Code[20]
OldItemCategoryCode Code[20]

DeleteCategoryItemsAttributeValueMapping

procedure DeleteCategoryItemsAttributeValueMapping(var TempItemAttributeValueToRemove: Record "Item Attribute Value" temporary, CategoryCode: Code[20])

Parameters

Name Type Description
TempItemAttributeValueToRemove Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
CategoryCode Code[20]

InsertCategoryItemsAttributeValueMapping

procedure InsertCategoryItemsAttributeValueMapping(var TempItemAttributeValueToInsert: Record "Item Attribute Value" temporary, CategoryCode: Code[20])

Parameters

Name Type Description
TempItemAttributeValueToInsert Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
CategoryCode Code[20]

InsertCategoryItemsBufferedAttributeValueMapping

procedure InsertCategoryItemsBufferedAttributeValueMapping(var TempItemAttributeValueToInsert: Record "Item Attribute Value" temporary, var TempInsertedItemAttributeValueMapping: Record "Item Attribute Value Mapping" temporary, CategoryCode: Code[20])

Parameters

Name Type Description
TempItemAttributeValueToInsert Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
TempInsertedItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"
CategoryCode Code[20]

SearchCategoryItemsForAttribute

procedure SearchCategoryItemsForAttribute(CategoryCode: Code[20], AttributeID: Integer): Boolean

Parameters

Name Type Description
CategoryCode Code[20]
AttributeID Integer

Returns

Type Description
Boolean

DoesValueExistInItemAttributeValues

procedure DoesValueExistInItemAttributeValues(Text: Text[250], var ItemAttributeValue: Record "Item Attribute Value"): Boolean

Parameters

Name Type Description
Text Text[250]
ItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"

Returns

Type Description
Boolean

Events

OnBeforeItemAttributeValueMappingInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeItemAttributeValueMappingInsert(var ItemAttributeValueMapping: Record "Item Attribute Value Mapping", var TempItemAttributeValue: Record "Item Attribute Value" temporary)

Parameters

Name Type Description
ItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"
TempItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"

OnBeforeInsertCategoryItemsAttributeValueMapping

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCategoryItemsAttributeValueMapping(var TempItemAttributeValueToInsert: Record "Item Attribute Value" temporary, CategoryCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
TempItemAttributeValueToInsert Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
CategoryCode Code[20]
IsHandled Boolean

OnBeforeInsertCategoryItemsBufferedAttributeValueMapping

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertCategoryItemsBufferedAttributeValueMapping(var TempItemAttributeValueToInsert: Record "Item Attribute Value" temporary, var TempInsertedItemAttributeValueMapping: Record "Item Attribute Value Mapping" temporary, CategoryCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
TempItemAttributeValueToInsert Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
TempInsertedItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"
CategoryCode Code[20]
IsHandled Boolean

OnBeforeBufferedItemAttributeValueMappingInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeBufferedItemAttributeValueMappingInsert(var ItemAttributeValueMapping: Record "Item Attribute Value Mapping", var TempItemAttributeValueMapping: Record "Item Attribute Value Mapping" temporary)

Parameters

Name Type Description
ItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"
TempItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"

OnBeforeDeleteCategoryItemsAttributeValueMapping

[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteCategoryItemsAttributeValueMapping(var TempItemAttributeValueToRemove: Record "Item Attribute Value" temporary, CategoryCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
TempItemAttributeValueToRemove Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
CategoryCode Code[20]
IsHandled Boolean

OnBeforeGenerateAttributeDifference

[IntegrationEvent(False,False)]
local procedure OnBeforeGenerateAttributeDifference(var TempFirstItemAttributeValue: Record "Item Attribute Value" temporary, var TempSecondItemAttributeValue: Record "Item Attribute Value" temporary, var TempResultingItemAttributeValue: Record "Item Attribute Value" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
TempFirstItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
TempSecondItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
TempResultingItemAttributeValue Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
IsHandled Boolean

OnBeforeGetFilteredItems

[IntegrationEvent(False,False)]
local procedure OnBeforeGetFilteredItems(var ItemAttributeValueMapping: Record "Item Attribute Value Mapping", var TempFilteredItem: Record Item temporary, AttributeValueIDFilter: Text, var IsHandled: Boolean)

Parameters

Name Type Description
ItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"
TempFilteredItem Table Microsoft.Inventory.Item.Item
AttributeValueIDFilter Text
IsHandled Boolean

OnFindItemsByAttributesOnBeforeFilterItemAttributesBufferLoop

[IntegrationEvent(False,False)]
local procedure OnFindItemsByAttributesOnBeforeFilterItemAttributesBufferLoop(var FilterItemAttributesBuffer: Record "Filter Item Attributes Buffer", var TempFilteredItem: Record Item temporary, var ItemAttributeValueMapping: Record "Item Attribute Value Mapping")

Parameters

Name Type Description
FilterItemAttributesBuffer Table Microsoft.Inventory.Item.Attribute."Filter Item Attributes Buffer"
TempFilteredItem Table Microsoft.Inventory.Item.Item
ItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"

OnInsertBufferedItemAttributeValueMappingOnBeforeItemAttributeValueMappingInsert

[IntegrationEvent(False,False)]
local procedure OnInsertBufferedItemAttributeValueMappingOnBeforeItemAttributeValueMappingInsert(var TempItemAttributeValueToInsert: Record "Item Attribute Value" temporary, var ItemAttributeValueMapping: Record "Item Attribute Value Mapping")

Parameters

Name Type Description
TempItemAttributeValueToInsert Table Microsoft.Inventory.Item.Attribute."Item Attribute Value"
ItemAttributeValueMapping Table Microsoft.Inventory.Item.Attribute."Item Attribute Value Mapping"

OnSearchCategoryItemsForAttributeOnBeforeSearchByParentCategory

[IntegrationEvent(False,False)]
local procedure OnSearchCategoryItemsForAttributeOnBeforeSearchByParentCategory(CategoryCode: Code[20], AttributeID: Integer, var IsHandled: Boolean, var ReturnValue: Boolean)

Parameters

Name Type Description
CategoryCode Code[20]
AttributeID Integer
IsHandled Boolean
ReturnValue Boolean

OnBeforeInheritAttributesFromItemCategory

[IntegrationEvent(False,False)]
local procedure OnBeforeInheritAttributesFromItemCategory(var Item: Record Item, NewItemCategoryCode: Code[20], OldItemCategoryCode: Code[20], var Handle: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
NewItemCategoryCode Code[20]
OldItemCategoryCode Code[20]
Handle Boolean

OnAfterInheritAttributesFromItemCategory

[IntegrationEvent(False,False)]
local procedure OnAfterInheritAttributesFromItemCategory(var Item: Record Item, NewItemCategoryCode: Code[20], OldItemCategoryCode: Code[20])

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
NewItemCategoryCode Code[20]
OldItemCategoryCode Code[20]

See also