PromotedActionCategories / PromotedActionCategoriesML does not work as expected.
Hi,
Describe the bug
PromotedActionCategories / PromotedActionCategoriesML does not work as expected.
To Reproduce
Created a Page Extension in a container and a online Sandbox. I have added a promoted Category but it does show with either PromotedActionCategories = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction;
Or
PromotedActionCategoriesML = ENA = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction', ENZ = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction', ENU = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunction';
action(NewFunctionAction)
{
ApplicationArea = All;
CaptionML = ENU = 'NewFunctionItem',
ENA = 'NewFunctionItem',
ENZ = 'NewFunctionItem';
Image = ElectronicRegister;
Promoted = true;
PromotedCategory = Category12;
PromotedIsBig = true;
}
Expected behavior I expect the new caption to be seen, but it is not.
5. Versions: Version: Platform 15.0.36985.0 + Application 15.0.36626.37063 AL Language 4.0.184307
Hi @calcifieddeveloper, can you elaborate a bit more about what you are getting in the webclient (maybe adding a screenshot?) and what you would expect to see?
Hi, Sure.

I would expect if I have new promoted actions defined as Category12 that the caption should show as "NewFunction"
Anyone have any ideas ?
Hi! We could not reproduce. The following code produces the expected result.
pageextension 50100 CustomerListExt extends "Customer List"
{
PromotedActionCategoriesML = ENA = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction',
ENZ = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction',
ENU = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction';
// PromotedActionCategories = 'New,Process,Report,Bank,Prepare,Approve,Page,Post/Print,Line,Account,Cheque,NewFunctionAction';
actions
{
addlast("&Customer")
{
action(NewFunctionAction)
{
ApplicationArea = All;
CaptionML = ENU = 'NewFunctionItemENU',
ENA = 'NewFunctionItemENA',
ENZ = 'NewFunctionItemENZ';
Image = ElectronicRegister;
Promoted = true;
PromotedCategory = Category12;
PromotedIsBig = true;
trigger OnAction()
begin
end;
}
}
}
}

Could you try the code above, if the problem is still there please provide any additional info could help us to get a repro: the source code/project, other extensions etc. Thanks.
Hi, Please find attached a project that can replicate the issue ALProject1.zip
Hi Andrey, Any update ?
Hi @calcifieddeveloper, not yet. We are working on it and I'll let you know when we have anything new as soon as possible.
Thanks @AndreyKorepanov
Hi @calcifieddeveloper I've tested your project and it works as expected on my side, please find the screenshot below (the only thing I changed is the CreateFile action - I substituted it with the CreateApprovalWorkflow, to be able to compile it). I can not see any problems here. The only my guess regarding the "Category 12" title displaying (see the first your screenshot) is could it be that you are using different Regional & Language settings, not listed in the PromotedActionCategoriesML?

Hi,
Sorry, I still don't get the expected result with this code.
ALProject1.zip
@calcifieddeveloper what localization of the application are you using? Is there a specific docker tag that you are using or is it a local installation?
Yes indeed, I am using this one : mcr.microsoft.com/businesscentral/sandbox:au
@calcifieddeveloper @atoader I have same issue on docker image: mcr.microsoft.com/businesscentral/sandbox:us-ltsc2016
But it works good on docker image mcr.microsoft.com/businesscentral/sandbox:ltsc2016
Thanks @monchangg.
@atoader any ideas ?
Tested again on this image bcinsider.azurecr.io/bcsandbox-master:au-ltsc2019 (pulled this morning) with the same code and I get the same result.
We have identified the root cause a week ago. We have a fix in the pipeline and we plan to ship it for 15.2
@atoader Can I know when the 15.2 will be released?
Any news regarding this bug?
Issue still present... Any updates?