Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Create new BP in Dynamics 365.

(0) ShareShare
ReportReport
Posted on by

I'm trying to make or customize some Best Practices in Dynamics 365 Operation.
What I want to create new BP is wonder if any object name has "XXX" letter.

If so, I would like to show a message "the word 'XXX' is not contains in names".

Could you tell me how to show/make a new message like this?

https://docs.microsoft.com/en-us/dynamics365/unified-operations/dev-itpro/dev-tools/author-best-practice-rules

www.agermark.com/.../authoring-best-practice-checks-that-use.html

*This post is locked for comments

  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at
    RE: Create new BP in Dynamics 365.

    The first example which you have linked has an example which finds parameters in source code that starts with an underscore. It is a simple comparison. Now AX objects are represented as source code, so it must be quite easy to apply the techniques in the example entry.

    Observe how specific objects look like when they are represented as source code (syntax that you could look for), then from there it is just a matter of identifying those patterns, and doing a Regular Expression check or String comparison partial matching for your XXX characters within the object name.

    The alternative solution is if you do not want to parse code, is to apply the technique mentioned at the end of the MSDN article, using the BestPracticeMetadataChecker for parsing the metadata objects directly. Since the BP framework is open, you could easily find examples in the AOT using a simple search for this checker class, and replicate what you see there for your situation.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,145 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,917 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans