You need to sign in to do that
Don't have an account?
icejohn2508
How would I write a trigger to delete a record upon insert when a field = 0
We upload/create records into our Trading Info custom object tradingInfo__c in Salesforce via the API. We currently create Trading Info records for each product that a contact has access to trade even when no actual trade has occurred. I would like to delete all Trading Info records created upon insert if the tradeCount__c =0. I am new to APEX and would appreciate any assistance.
Thanks,
Thanks,
Still your requirment is not clear enogh to provide solution .
You are creatin tradingInfo__c record via API .tradeCount__c field is in which object ?
Which record you want to delete and when need to delete ?
Please clarify .