Hello All,
I am trying to import values from sql to d365fo. There are few Time fields which are denoted as Integer field in sql (for eg: WMSArrivalHandlingTime in InventTable) so I am getting data violation error. Is there any way to over come this?
Map fieldMaps = new Map(Types::String, Types::String);
SysDictTable dictTable;
SysDictField dictField;
int i, cnt;
dictTable = new SysDictTable(tableName2Id(DMFEntity::find(contract.parmEntityName()).TargetEntity));
cnt = dictTable.fieldCnt();
for (i= 1; i<=cnt;i )
{
dictField = new SysDictField(tableName2Id(DMFEntity::find(contract.parmEntityName()).TargetEntity),dictTable.fieldCnt2Id(i));
fieldMaps.insert(dictField.name(), enum2Str(dictField.baseType()));
}
return fieldMaps;
I tried this to get the data type but as I am getting integer I couldnt able to achieve the same.
Thanks.