Skip to content

Code action: Convert promoted actions to modern action bar fails when specifying 'NoPromotedActionProperties ' #7255

@hemisphera

Description

@hemisphera

1. Describe the bug
The code action to convert existing promoted actions to the new action bar syntax fails on objects of type "Page" when in the app.json the feature flag NoPromotedActionProperties is enabled. The code action still works fine on page extensions though.

By "it fails" I mean that the "PromotedXXX" properties are correctly removed, but the actionref items are not created. An empty aread(Promoted) is created. Like so:
image

If I remove that feature flag, everything works as expected on both objects (page + pageextension).

2. To Reproduce
Steps to reproduce the behavior:

  1. Open your app.json, and enable the feature flag NoPromotedActionProperties
  2. Try to convert any promoted action

3. Expected behavior
Both page + pageextension objects should be converted correctly, with or without the feature flag NoPromotedActionProperties enabled.

4. Actual behavior
image

5. Versions:

  • AL Language: 10.1.707468
  • Visual Studio Code: 1.73.1

Metadata

Metadata

Assignees

Labels

acceptedships-in-future-updateThe issue is fixed in our 'master' branch and will ship in the next PREVIEW release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions