Salesforce Apex

Salesforce

DML check in Salesforce Apex

Option 1: System.debug( 'Create Allowed? ' + Schema.sObjectType.Account.isCreateable() ); System.debug( 'Update Allowed? ' + Schema.sObjectType.Account.isUpdateable() ); System.debug( 'Delete Allowed? ' + Schema.sObjectType.Account.isDeletable() ); Option 2: DescribeSObjectResult sobjectRes = Account.sObjectType.getDescribe(); System.debug( ....