Wednesday, 6 May 2020

BP error 'parameter not used' d365 AX

BP error 'parameter not used' d365 AX 

Add the below text at the end with comma
,SuppressBPWarning('BPParameterNotUsed', "Parameter required"  - to end of the decorator.

E.g.
   [FormDataFieldEventHandler(formDataFieldStr(aForm, aDatasource, aField), FormDataFieldEventType::Validating),SuppressBPWarning('BPParameterNotUsed', "Parameter required")
]

1 comment:

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++

Blog Post 6: Bonus – Building Your First Custom Copilot Plugin in X++  Introduction In our previous posts, we explored what Copilot can do o...