From 56a903f358cb9d25a1122054e9c794fd8d1cd8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vercaemst?= Date: Fri, 6 May 2022 09:09:41 +0200 Subject: [PATCH] Added Tips section with link to VS Code extension #175 --- content/docs/BestPractices/named-invocations/index.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/docs/BestPractices/named-invocations/index.md b/content/docs/BestPractices/named-invocations/index.md index 2aa77cc1..395848e4 100644 --- a/content/docs/BestPractices/named-invocations/index.md +++ b/content/docs/BestPractices/named-invocations/index.md @@ -21,3 +21,9 @@ When calling an object statically use the Object Name, not the Object Id. ```al Page.RunModal(Page::"Posted Sales Shipment Lines", SalesShptLine); ``` + +## Tips + +The [BusinessCentral.LinterCop](https://marketplace.visualstudio.com/items?itemName=StefanMaron.businesscentral-lintercop) extension adds a new rule to check your code for hardcoded object IDs. + +- [LC0012](https://github.com/StefanMaron/BusinessCentral.LinterCop/wiki/LC0012): Using hardcoded IDs in functions like Codeunit.Run() is not allowed.