Hi there,
I have an issue with Security Filter in BC if I want to set Security Filter on the No. Series tables. Let’s say I have 2 different prefix for Sales Order, when I set the Security Filter, the system always show this message “A security filter has been applied to table No. Series. You cannot access records that are outside of this filter.”
I debug and it break on code below in function “CheckNumberSeries” (codeunit 1400) :
IF RecVariant.ISRECORD AND (NoSeriesCode <> ‘’) AND NoSeries.GET(NoSeriesCode) THEN BEGIN
In NAV, I will add code like below.
NoSeries.SecurityFiltering := SecurityFilter::Ignored; //my additional code
IF RecVariant.ISRECORD AND (NoSeriesCode <> ‘’) AND NoSeries.GET(NoSeriesCode) THEN BEGIN
…
How to do this using extension with AL Code in Business Central?
in extension, I cannot add code because there is no publisher before the system Get the NumberSeries.
Any suggestions are welcome, what I need is to restrict user to choose inappropriate Nos. (Usually I need it for my customer with many branches, so that each branch will have their own prefix number)
Thank you.