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

Notifications

Announcements

No record found.

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;
}
I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 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
    8,635 Super User 2025 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
    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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans