I have subscribed Event ie. "OnAfterAssignFieldsForNo" on "Purchase Line". see below Image.
It. Show the Warning ie. The name of PurchLine is not valid. The name of variables and parameters must be suffixed with the type or object name. [AA0072].
Please suggest How to solve this warning.
Thanks in Advanced.
It also looks correct to me. Which version of the VSCode AL extension are you using?
Thanks for your reply. The VS Code AL extension version is v6.1.352568
You must use the parameter names that are defined in the event publisher, so the only way to fix that is changing the parameter names in the event publisher
Thanks for your reply. If I have changed the name "PurchaseLine" instead of "PurchLine". in the EventSubscriber. but It shows the error "The member referenced by event subscriber 'WHTProdPostGroupValidaeAgainstType' parameter 'PurchaseLine' is not found."
Not sure it's a good idea to change the variable names of a standard event publisher from the base application...
You can't change the parameter names in the subscriber, you are not allowed to change them because they have to be the same as the names in the publisher. The only way that this could be changed is if you can change it in the publisher first.