Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Migrating Base Enum using Data Migration in AX 2012

$
0
0

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.


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>