web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Verified answer
    Vilmos Kintera Profile Picture
    46,149 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans