Delete Records Through Groovy
SummaryDelete Records Through Groovy
I wanted to delete object records through groovy.
1- we are creating asset against Accounts when opportunity is "WON" (Developed)
2- We want to delete the assets when Opportunity Status is "LOST", we are saving opptyId in Asset to identify from which opportunity it is created.
Is is possible to delete Asset / Any records through groovy? or else we will use API call to achieve the same scenario.