AssetTransfer.transferAsset Method [AX 2012]
Transfers all the assets that exist in the RecordSortedList object to the new dimension value and inserts history in the AssetTransferHistory table and updates the AssetBook table with the new dimension value.
Syntax
public boolean transferAsset(
RecordSortedList _assetBookList,
DimensionDefault _newDimension,
TransferDate _transferDate,
TransferComment _transferComment)
Run On
Server
Parameters
- _assetBookList
Type: RecordSortedList Class
A list that contains all the AssetBook records to transfer.
- _newDimension
Type: DimensionDefault Extended Data Type
The new transfer to value of the dimension.
- _transferDate
Type: TransferDate Extended Data Type
The asset transfer date.
- _transferComment
Type: TransferComment Extended Data Type
The asset transfer comments.
Return Value
Type: boolean
true if the asset is transferred successfully; otherwise, false.
Remarks
This method transfers the fixed asset to a new dimension, inserts history in the AssetTransferHistory table, and updates the AssetBook table with the new dimension values.