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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Activity got error : A security filter has been applied to table Sales Header. You cannot access records that are outside of this filter..

(1) ShareShare
ReportReport
Posted on by 55

Hi expert,

My activity have got this error : A security filter has been applied to table Sales Header. You cannot access records that are outside of this filter.. 

How to solve this problem?

pastedimage1626161372678v1.png

I also have try to write SecurityFiltering in AL code, but still don't work.

Below is AL code:

pageextension 50020 SO extends "SO Processor Activities"
{

    trigger OnOpenPage()
    var
        cueRec: Record "Sales Header";
    begin
        cueRec.Reset();
        cueRec.SecurityFiltering := cueRec.SecurityFiltering::Filtered;
    end;
}
  • Suggested answer
    JAngle Profile Picture
    161 on at

    Security filters can be set from a permission set. If you have access check those. Not something a page extension can bypass as it’s part of the system app

  • MLIT Profile Picture
    55 on at

    This error is after I have been set the security filter in permission set on D365 BC.

  • Suggested answer
    RockwithNav Profile Picture
    9,229 Super User 2026 Season 2 on at

    Why are you setting up a security filter?

    Did you checked Roles and Permission?

  • MLIT Profile Picture
    55 on at

    Because the user just can open and see their own sales quote and sales order only.

    The error is after I apply to user the security filter.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    I assume you need to provide us more information about what you configured.

    Thanks.

  • MLIT Profile Picture
    55 on at

    I want to show the activity but when I set the sales header security sets (Salesperson code = salesperson name) in permission set, it will got error and will not show out my activity.

    pastedimage1626402250428v2.png

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    I did not yet had the time to continue looking at this, would you mind raising this to Microsoft so one of us can take a look.

    Thanks.

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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 569 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 375 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 228 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans