Migrating Base Enum using Data Migration in AX 2012

Hi Guys,

I’m using Data Migration Framework to migrate master data to AX 2012. The import data (csv) that we will use is generated from the company’s old system. There is one particular field which in AX 2012 a base enum, NoYesId, but the values in import file for this is lettey Y and N. I tried to create a method in the entity class, which looks like below, but nothing happen.

What is the possible solution for this?

public container GenerateExcludeFrom(boolean _stagingToTarget = true)

{

Container res;

;

if(entity.ExcludeFrom == “Y”)

{

res = [“Yes”];

}

else

{

res = [“No”];

}

return res;

}

Thanks.