LC0062 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki
Mandatory field is missing on API page.
These fields should always be part of the API Page:
- SystemId
- This field should be exposed with the name
id
- This field should be exposed with the name
- SystemModifiedAt
- This field should be exposed with the name
lastModifiedDateTime
. If you choose a different name, then the webhook functionality will not work properly.
- This field should be exposed with the name
Example
page 50100 MyApiPage
{
PageType = API;
// "Field 'Rec.SystemId' exposed with the name 'id' should always be included on API Pages.
field(id; Rec.SystemId) { }
// "Field 'Rec.SystemModifiedAt' exposed with the name 'lastModifiedDateTime' should always be included on API Pages.
field(lastModifiedDateTime; Rec.SystemModifiedAt) { }
}