Dynamics 365 Business Central: noisy problem in UsageCategory and ApplicationArea related to Search

I’ve see many AL developers with the same problem when developing an extension for Dynamics 365 Business Central: they create a new table, then they create a new page based on that table, they set UsageCategory and ApplicationArea properties, they deploy the extension to Dynamics 365 Business Central with success, then they search for the newly created page and… it’s not there!!! 😦

This problem (I didn’t check if it occours on all the Dynamics 365 Business Central versions, current one or also insider builds) is due to a stupid thing: don’t use quotes when setting UsageCategory and ApplicationArea.

This is a code that works:

UsageCategoryProblem_01.jpg

And this is a code with problems while searching your page:

UsageCategoryProblem_02.jpg

These two versions doesn’t have problems when compiling your AL code on Visual Studio Code (all versions are admitted) but the first one is what you have to do if you want to find your page in Search without problems.

Hope it helps.

 

2 Comments

  1. Look like it’s still a problem in the latest build.
    The actual problem is the ApplicationArea-value. It acts “special”. It is a list of string, which should never contain a space (so you don’t ever have to use the double quotes)… and indeed, if you do, it acts strange..

    Nice catch!

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.