I have AIF services for CustTable . How to call ValidateWrite method of the custtable in the service . Basically it should validate all the vvalidations in the Validatewrite of custtable . I know it calls INSERT method of custtable . Any idea where to write it or call it . Please
ValidateWrite method is executed when a record is written to the database, before the data change is committed in the database. So, INSERT method would call validateWrite(), anyway. So, which class is your AIF service backend class? You can directly call custTable.ValidateWrite() in your desired method in your service class.