Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / How to suppress 1 Best...
Finance forum
Unanswered

How to suppress 1 Best Practice for the whole ?

Posted on by 390
Hi,
 
If I understand correctly, when suppress Best practice, we need to specify the path to our class/form etc. 
 
Something like in the bold font :
 
<Diagnostic>
            <DiagnosticType>BestPractices</DiagnosticType>
            <Severity>Warning</Severity>
            <Path>dynamics://DataEntityViewExtension/EcoResReleasedProductV2Entity.AGC/Relations/WHSProductFilterGroups/RelatedDataEntity</Path>
            <Moniker>ReferencedObjectIsObsolete</Moniker>
            <Message>Referenced object 'WHSProductFilterGroupEntity' is marked as obsolete. </Message>
            <Justification>Extension of EcoResReleasedProductV2Entity, not able to remove reference to WHSProductFilterGroupEntity from underlying entity.</Justification>
        </Diagnostic>
 
However, if we intent to suppress some common like the BP warning for "no parameters" in all of our codes.
 
C:\AOSService\PackagesLocalDirectory\Bin\XppSource\MyDev\AxTable_VMSParameters.xpp(3,1):  BPXmlDocParameterNotDescribed: BP Rule: [BPXmlDocParameterNotDescribed]:BPXmlDocParameterNotDescribed: Parameter '_forUpdate' is not described in any 'param' tag.
 
So what I want is not throwing BP warning message for BPXmlDocParameterNotDescribed, for all my classes. 
 
Thanks
 
  • Layan Jwei Profile Picture
    Layan Jwei 7,071 Super User 2024 Season 2 on at
    How to suppress 1 Best Practice for the whole ?
    Hi,
     
    Is your question answered? If yes then please verify the answers that helped
  • Layan Jwei Profile Picture
    Layan Jwei 7,071 Super User 2024 Season 2 on at
    How to suppress 1 Best Practice for the whole ?
    Hi,
     
    If you don't want the BP warning at all, then you will need to do it for each class.
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,532 Super User 2024 Season 2 on at
    How to suppress 1 Best Practice for the whole ?
    Hi Ken,
     
    You can only exclude objects or comment in the coding to skip the BP check as mentioned in the blog. You can disable some BP rules, but they will be executed when you enable the best practice checks when building a complete model anyway. 

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans