Table duplication

Hi All,

How can we duplicate table through X++.

Hi

Below the code:

TreeNode::findNode("\Data Dictionary\Tables\Table_Name").AOTDuplicate();

Thanks Denis Macchinetti**.**