The RecordRef variable in Microsoft Dynamics NAV is a very useful data type. Especially when writing generic code where you can’t predict the record type. Using the RecordRef variable can drastically reduce your code.
But sometimes you need to run a certain Page (or Report), based on the record type. To run the default lookup . . . → Read More: Run a Page or Report with RecordRef variable