# RecordRef.Reset() Method
> Version: _Available or changed with runtime version 1.0._
Removes all filters, including any special filters set by the MarkedOnly method (Record), changes fields select for loading back to all, sets the read isolation level to the default value, and changes the current key to the primary key. Also removes any marks on the record and clears any AL variables defined on its table definition.
## Syntax
```al
 RecordRef.Reset()
```
## Parameters
RecordRef
Type: recordref-data-type
An instance of the recordref-data-type data type.
## Remarks
If no table is selected, this method returns an error.
This method works the same as the ../record/record-reset-method.
## Example
The following example opens the Customer \(18\) table and creates a RecordRef variable that is named RecRef. The recordref-getfilters-method gets filters that have been applied to records in the table. The filters that are returned, if any, are stored in the Filters1 variable and displayed in message box. In this example, no filters are set so the message is blank. The recordref-setrecfilter-method sets a filter on the current key of the current record that is represented by the RecRef variable. The recordref-getfilters-method gets the filters that have been set and stores the value in the Filters2 variable. The message displays No. because the No. field is set as a filter. The Reset method removes the filter that was set. The value of the filter that is returned by the recordref-getfilters-method after the recordref-reset-method is executed is stored in the Filters3 variable. Filter3 is blank because the filter that was set by `RecRef.SetRecFilter;` is removed by the Reset method.
```al
var
    RecRef: RecordRef;
    Filters1: Text;
    Filters2: Text;
    Filters3: Text;
    Text000: Label 'Filter before filter is set is: %1.';
    Text001: Label 'Filter after filter is set is: %1.';
    Text002: Label 'Filter before filter is reset is: %1.';
begin
    RecRef.Open(Database::Customer);
    Filters1 := RecRef.GetFilters;
    Message(Text000, Filters1);
    RecRef.SetRecFilter;
    Filters2 := RecRef.GetFilters;
    Message(Text001, Filters2);
    RecRef.Reset;
    Filters3 := RecRef.GetFilters;
    Message(Text002, Filters3);
end;

```
## Related information
recordref-data-type
Get Started with AL<../../devenv-get-started>
Developing Extensions<../../devenv-dev-overview>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/recordref/recordref-reset-method, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/methods-auto/recordref/recordref-reset-method/
