Hi All,
as per my understanding of AL code now, recordREF and fieldREF are to be used when referencing protected tables and fields.
Code is below, along with errors from BC.
Appreciate any help here, I am super close....but can't access the record!
pageextension 60031 pExt60031EmailEditor extends "Email Editor" { actions { modify(Send) { trigger OnBeforeAction() var emailOutBoxRecordRef: RecordRef; currentEmailRecordID: RecordId; idFieldRef: FieldRef; descriptionField: Text[100]; begin emailOutBoxRecordRef.Open(8888); idFieldRef := emailOutBoxRecordRef.field(1); idFieldRef.Value := Rec.Id; if emailOutBoxRecordRef.Find('=') then descriptionField := emailOutBoxRecordRef.Field(6).Value; end; } } }
Hi, I checked table 8888 "Email Outbox". The table itself and the Id field are accessible via tableextension. But the Access property of other fields is Internal, such as the emailOutBoxRecordRef.Field(6) you need to use.
This value is only accessible to Microsoft apps.
Hope this helps.
Thanks
ZHU
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156