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.
- I have the PK - but when using .FIND method (as seen here) it returns back with error that ID does not exist.....but it certainly does
- When using GET method, the permissions error appears
- Tried to set permissionset using Tableextension for 8888 - did not seem to help
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;
}
}
}

Report
All responses (
Answers (