# How To Fetch Enum Value Instead oF EnumID through C# code.

**URL:** <https://www.dynamicsuser.net/t/how-to-fetch-enum-value-instead-of-enumid-through-c-code/35120>\
**Category:** Developer Forum\
**Created:** [January 18, 2012, 12:45pm UTC](https://www.dynamicsuser.net/t/how-to-fetch-enum-value-instead-of-enumid-through-c-code/35120 "2012-01-18T12:45:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkmoazzam](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@kkmoazzam](https://www.dynamicsuser.net/u/kkmoazzam)\
**Post date:** [January 18, 2012, 12:45pm UTC](https://www.dynamicsuser.net/t/how-to-fetch-enum-value-instead-of-enumid-through-c-code/35120/1 "2012-01-18T12:45:12Z")

</div>

Hi All,

Please help to get the Enum Value from Axapta 2009, instead of EnumID.

Here is the method which i use to fetch the enum field from Axapta.

axRecord = ax.CreateAxaptaRecord(“tableName”);  
axRecord.ExecuteStmt(“Sqlquery”);

while (axRecord.Found)  
{  
blMessage.Text = Convert.ToString(axRecord.get\_Field(“AccountPlType”));  
break;  
}

its print the ID of AccountType .// suppose 3 for Balance.

But i need to print the BALANCE instead of 3.

Please help to come out .

Thanks.
