
hi
i am writing a plugin on "Sales management table" It has even set up business rules and JavaScript events
so when importing into an Excel file, I would like to set up a plugin so that it does not import when it does not meet the business rules and JavaScript event conditions.
please guide how can i write C# code
Hi Hubert Hong,
You need to create a C# Plugin registered on Pre-Validation to ensure that the Excel data import meets your conditions. You will need to change the scope of your Business Rules to Entity so that they trigger when you import data. JavaScript will not trigger on data import so you will need to incorporate the logic into your C# code or Business Rules.