Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ Item.FindFirst();
```

```al
// Bad example (avoid SetLoadFields after filtering)
Item.SetLoadFields("Item Category Code");
// Bad example - SetLoadFields should be called before database operations like `FindFirst` or `FindSet`
Item.SetRange("Third Party Item Exists", false);
Item.FindFirst();
Item.SetLoadFields("Item Category Code");
```

## Rule 3: Use Temporary Tables, Dictionaries, and Lists for Performance
Expand Down