0

In AX 2012 I want to add the year (e.g. 2011) as prefix in the ID field.

For instance I create a new customer in AX. The ID of this new customer should be like: 2013-00000123

Is it possible to set the year in the segments instead of coding this.

How can I achieve this? Thank you in advance.

Tassisto
  • 9,877
  • 28
  • 100
  • 157
  • 1
    You need to specify the version of AX. This is handled differently in AX2012 compared to AX2009, as far as I know. – Skaue Jan 25 '13 at 13:24

2 Answers2

2

If the "fixed" solution proposed by Sshaheen don't suit your needs, and you really need to get a dynamic value for the year, the only suitable solution if to develop it through X++ code, in the CustTable table or class (just find where a new sequence number is obtained).

Anyway, I'll recommend using a constant value on the number sequence, as Sshaheen states.

j.a.estevan
  • 3,057
  • 18
  • 32
  • Is it possible to get a dynamic value by changing settings of the segments? Can I avoid coding? – Tassisto Jan 28 '13 at 08:54
  • 1
    It's not possible, as far as I know. You can find a very detailed documentation about the new numseq framework here: http://technet.microsoft.com/en-us/library/hh272879.aspx – j.a.estevan Jan 28 '13 at 09:18
1

The simplest way to do this would be to create a new number sequence and make two segments, one that is constant (the year 2013), and one that is alphanumeric. Then, go to the AR parameters and set Customers to your new number sequence. However, you would need to do this at the first of every year to change the constant.

SShaheen
  • 1,012
  • 7
  • 21