Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

How to suppress 1 Best Practice for the whole ?

(1) ShareShare
ReportReport
Posted on by 504
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,369 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,369 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... 291,419 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans