Enter the key words to find the related topics

D365 Best practice warring

If we get BP warring regarding parameter "e" is not used in coding part we can set below attribute in the method.

SuppressBPWarning('BPParameterNotUsed', 'Parametr e not used')

Example:
 [DataEventHandler(tableStr(PurchLine), DataEventType::Updating),
     SuppressBPWarning('BPParameterNotUsed', 'Parameter required for eventhandler.')]
    public static void PurchLine_onUpdating(Common sender, DataEventArgs e)
    {
}

No comments:

Post a Comment