Skip to main content
Hi All, 

I have tried to delete the record from VoiceCallRecording in the execute anonymous to test this functionality so that later on I can put the same in Apex class.

I am the owner of voicecall record.

Here is the below code snippet.

List<VoiceCallRecording> vcr = [SELECT Id, Name, VoiceCallId FROM VoiceCallRecording where VoiceCallId = 'SomeIdOfVoiceCall'];

delete vcr.get(0);

and when I execute this, I get error like DML operation Delete not allowed on VoiceCallRecording

As per documentation of the VoiceCallRecording says that the delete() is allowed. Could anyone pls guide me through this, is there any permission set that needs to be enabled or anything that I am missing

url of the documentation Link (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_voicecallrecording.htm)
1 answer
  1. Sep 4, 2021, 6:20 PM
    Hi Sunil,

    As per my understanding the record on this object might not be able to delete using apex. 

    Thanks,
0/9000