Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Business Central updates!Learn about the key capabilities and features of Dynamics 365 Business Central and experience some of the new features.
Overview | Guided Tour | Free Trial
2023 Release Wave 1Check out the latest updates and new features of Dynamics 365 released from April 2023 through September 2023
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
This is a very quick post to answer a question sent to me privately today by a Dynamics 365 Business Central partner. Question was the following: Why a permission set can have only 20 characters in the name? Is it standard or is it an AL extension bug?
AL permission sets name length check has a sneaky behaviour in Visual Studio Code. Let’s create a simple permission set like the following:
This permission set is defined with a long name and the AL compiler gives you the following error:
The length of the application object identifier 'SD Base permission with long name' cannot exceed 20 characters.
Ok, permission sets names must have 20 characters…
But the previously defined permission set has the Assignable property setted to true. This means that it can e assigned to users via UI. What happens if we remove this property?
The length of the application object identifier 'SD Base permission with long name' cannot exceed 30 characters.
Oh… the name now can have 30 characters??? Is this a bug or what?
This is not a bug but it’s a “not nice” standard behaviour of the AL extension. Some Business Central releases ago (I don’t remember exactly how many) Microsoft tried to change all the permissions sets names to 30 characters. But unfortunately this was a breaking change on some cases and the limit was backported to 20 again.
So, current “state of the art” of the permission sets names rules is the following:
If you want to be safe on every case, then you should have permission sets with 20 characters at max in the name, at least for now…
Business Applications communities