01 March 2021

How to fix BP warning in Dynamics 365 FO

 Need to add the SuppressBPWarning for methods if not using any Parameters:

Example:

[FormDataSourceEventHandler(formDataSourceStr(EntAssetRequestTableCreate, TRGEntAssetRequestObjectTableView), FormDataSourceEventType::QueryExecuting),

        SuppressBPWarning('BPParameterNotUsed', 'The parameter is not required in this context')]

    public static void TRGEntAssetRequestObjectTableView_OnQueryExecuted(FormDataSource sender, FormDataSourceEventArgs e)

    {


=====

[FormDataSourceEventHandler(formDataSourceStr(AccountingDistribution, AccountingDistribution), FormDataSourceEventType::Activated),

        SuppressBPWarning('BPParameterNotUsed', 'Parameter required by the event interface')]

No comments:

Post a Comment

Give me the commetns and solutions

AXmodel file import in D365 F&O

 ModelUtil.exe -import -metadatastorepath=k:\aosservice\packageslocaldirectory -file=C:\Temp\DEST.axmodel