Instant deletion of a record using record id in Salesforce

Sample Code:

Opportunity oppty = new Opportunity(id='006Z0000008CbwQ');
delete oppty;

Cheers!!!

No comments:

Post a Comment