Skip to main content
5 events
when toggle format what by license comment
Aug 23, 2017 at 23:21 comment added Prasadium @JeffBennett I haven't written any custom validation anywhere except for the Javascript function validation which sits on the VF page itself. Javascript function callouts within the page doesn't come anywhere for salesforce order of execution. pklochkov this would be my last resort ;)
Aug 23, 2017 at 21:41 comment added pklachkou You can delete it immediately a after save. Or you can try to use database.setsavepoint and rollback method to rollback commit
Aug 23, 2017 at 21:36 comment added Jeff Bennett If you look at the Apex Order of Execution, you'll see that validation rules are run before the record is saved, so if it fails validation then it won't get saved to the system. If you don't want to save the record under any circumstances, then custom validation rules aren't the way to go. developer.salesforce.com/docs/atlas.en-us.apexcode.meta/…
Aug 23, 2017 at 21:06 comment added Prasadium I don't want to save the record. Can we achieve it without committing to Database?
Aug 23, 2017 at 19:18 history answered pklachkou CC BY-SA 3.0