parent
5652ea8c5d
commit
56a903f358
1 changed files with 6 additions and 0 deletions
|
|
@ -21,3 +21,9 @@ When calling an object statically use the Object Name, not the Object Id.
|
||||||
```al
|
```al
|
||||||
Page.RunModal(Page::"Posted Sales Shipment Lines", SalesShptLine);
|
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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue