Hello,
i need to get modified date time of a table in D365 by x++,
i understand its possible only for those tables which have modified date time enabled,
my code is below:
-
i tried two ways, first is xUtilElements
-
second one i tried was to find modified date time as a property on AxTable object, both ways failed, any suggestion how to get table modified date by x++ ???
// tableModified is an NoYes Enum
// tableObject is an AxTable from Microsoft.Dynamics.Ax.Xpp.MetadataSupport
if (tableModified)
{
if(tableObject.ModifiedDateTime)
{
tableNode = TreeNode::findNode('\\Data Dictionary\\Tables\\' + tableObject.Name);
utilElements = xUtilElements::findTreeNode(tableNode);
conForExport = conPoke(conForExport, conLen(conForExport)+1, utilElements.ModifiedDateTime);
}
}
else
{
conForExport = conIns(conForExport, conLen(conForExport)+1, '');
}