From 8befe1b704b0a0ad3748d9469281ad4331fbf934 Mon Sep 17 00:00:00 2001 From: Luuk Date: Fri, 22 Sep 2023 13:01:23 +0200 Subject: [PATCH] #SetLoadFields --- content/docs/BestPractices/SetLoadFields/Index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/BestPractices/SetLoadFields/Index.md b/content/docs/BestPractices/SetLoadFields/Index.md index 684b751d..e3aae546 100644 --- a/content/docs/BestPractices/SetLoadFields/Index.md +++ b/content/docs/BestPractices/SetLoadFields/Index.md @@ -32,7 +32,7 @@ Place the SetLoadFields in the code before the line of the Get (or find). (there ```AL Item.SetLoadFields("Item Category Code"); Item.SetRange("Third Party Item Exists", false); -Item.Get(ItemNo); +Item.FindFirst(); ``` ## Good code @@ -40,7 +40,7 @@ Item.Get(ItemNo); ```AL Item.SetRange("Third Party Item Exists", false); Item.SetLoadFields("Item Category Code"); -Item.Get(ItemNo); +Item.FindFirst(); ``` Place the SetLoadFields in the code before the case statement