Ax 2012

How to check weather all customers have nameAlias defined

I think one of the easier methods would be to run  this job, which will show number of all customers, and customer with Name Alias defined.

static void AmountOfCustomersWithNAmeAlias(Args _args)
{
    CustTable custtable;
    int counter1, counter2;

    while select CustTable
    {
        counter1++;
        if (CustTable.nameAlias())
        {
            counter2++;
        }
    }
   info (strFmt(“Counter1 %1, counter2 %2”,counter1, counter2));
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s