General X++ Development
Are RecIds unique across tables in D365FO?
Are RecIds unique across tables in D365FO?
1 answer
Write an answerDo not treat a RecId as a universal identifier across every table.
A RecId identifies a record in the context of its table. If you are storing a generic reference to an unknown table, you normally need the table ID too.
That is why D365FO has patterns such as:
RefTableId + RefRecIdIf your code only stores a RecId but can point to multiple table types, you are missing part of the reference.
Know the solution?
Sign in to contribute an answer and build your community reputation.
Sign in to answer