web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Permission Set for Email Outbox (8888) - preventing action

(0) ShareShare
ReportReport
Posted on by 132

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;
        }
    }
}

objectID.png

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,763 Super User 2026 Season 2 on at

    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.

    pastedimage1685059072820v1.png

    pastedimage1685059217179v3.png

    This value is only accessible to Microsoft apps.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-access-property

    Hope this helps.

    Thanks

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 562 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 503 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 332 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans