Dynamics 365

How to get fields name, type, mandatory and label of any AOT table or view in d365 fo using x++ code

How to retrieve enum Id from table field id in d365 fo using x++ Code