Version: Available or changed with runtime version 1.0.
Determines whether a RecordRef refers to a temporary table.
Temporary := RecordRef.IsTemporary()
This method can be invoked using property access syntax.
true if the RecordRef refers to a temporary table, otherwise false.
In versions of Dynamics 365 earlier than Microsoft Dynamics NAV 2013, if a RecordID or a RecordRef referred to a temporary table, then the table number value of the RecordID or RecordRef was the run-time generated sequence ID, which is from the base value of 2000100000. You could use the table number to determine if a RecordID or a RecordRef referred to a temporary table. In Dynamics 365 Business Central, the table number value of a RecordID or a RecordRef always contains the ID of the originating physical table and not the run-time generated sequence ID. If you previously used the TableNo Method (RecordID) or the Number Method (RecordRef) to test for the sequence number and determine if the RecordID or RecordRef was temporary, then you must use the IsTemporary method in Dynamics 365 instead.
This example shows that you can replace code that you used previously to determine if a RecordRef referred to a temporary table. This example requires that you create a RecordRef variable named RecordRefVar.
// Previous code ifRecordRefVar.Number >= 2000100000 then begin // Code for temporary tables end; // New code ifRecordRefVar.IsTemporary then begin // Code for temporary tables end;