In Dynamics AX 4.0 the record ID has changed base datatype from an integer to a 64-bit integer and the ID is now issued on a table by table basis. This obviously solves the problem of installations running out of record ID's, but it may also introduce a bit of work on your old solutions if you have code that depends on record ID's.
Since the datatype is now changed your code maybe fail in the places where you expect the record ID to be the old 32-bit integer. So you need to work your way through the following refactorings:
Table relations that are dependant on record ID's might need to have the table ID added to the relations, since the record ID is no longer unique accross tables. Take for example a look at the Address table.
This posting is provided "AS IS" with no warranties, and confers no rights.