Hi,
I am developing a custom API to extract vendor and related data using BC 19.1. My API is working fine and I would like to add audit fields such as systemCreatedAt and SystemModifiedAt
I tried adding them using Rec as well xRec but getting compilation error
field(systemCreatedAt; Rec.SystemCreatedAt)
{
Caption = 'SystemCreatedAt';
}
field(systemModifiedAt; Rec.SystemModifiedAt)
{
Caption = 'SystemModifiedAt';
}
compilation failed
src/api/manageVendorAPI.al(92,44):
error AL0132: 'Record Vendor' does not contain a definition for 'SystemCreatedAt' src/api/manageVendorAPI.al(96,45): error AL0132: 'Record Vendor' does not contain a definition for 'SystemModifiedAt'
Any idea what can be the best approach to add field such as SystemCreatedAt and SystemModifiedAt in my APIs (Page Type API)
Thanks
Famy