Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Size of EntryPoint name

(0) ShareShare
ReportReport
Posted on by 920

Hi,

I have a specific module that generate role and privilege.

In privilege, I have a specific structure of the name of entry point like this:

4744.ledger.png 

When I try to add this entryPoint : euk_A_LedgerJoutPostTrActLJTableCustPaymListPg  I get only : euk_A_LedgerJoutPostTrActLJTableCustPaym

There is a specific size of entryPoint?

*This post is locked for comments

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Size of EntryPoint name

    It can't be more than 40 characters long. You can see it from your own screenshots that the real name is only 40 characters long.

    There's no foolproof solution for you - maybe you should rethink your whole solution.

    Let's assume there are two menu items in the system that are 40 characters long and 36 first characters are the same.

    Your code would create the exactly same name for entry points for both of these menu items.

    If your solution is built on the assumption that there is only one entry point with a certain name, you will have issues.

    But if you only need to find the first entry point that matches your naming convention, you need to trim your search term so that it's only 40 characters long.

    TreeNode::findNode(subStr(yourTooLongSearchName, 1, 40)); 


  • BASMA Profile Picture
    BASMA 920 on at
    RE: Size of EntryPoint name

    the size of entryPoint that I have is :43

    How can I add this in code?

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Size of EntryPoint name

    The maximum length of an AOT object names is 40 characters. You need to handle that in your code, too. 

    For example if your menu item name is 38 characters long, you can't add a prefix of 5 characters for your entry point and still keep the complete menu item name, too.

  • BASMA Profile Picture
    BASMA 920 on at
    RE: Size of EntryPoint name

    the  problem is:

    I have this code to insert entryPoint :

    2248.code.png

    I have condition to verify that the entryPoint exist to add properties.

    but  treeEntryPointEdit=null so the properties are empty.

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: Size of EntryPoint name

    If you see the full name in the properties and it compiles and works without errors, I think it's ok.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans