function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sumit dsumit d 

Updating conversation entries from voice call

Hi All,
                 I have a requirement in which i want to to get the conversation entries on voice call and  find entries that include specific regular expression patterns. When an entry is found matching the pattern, use regular expression replacement to replace every number in the entry to the number sign (#).

How can i achieve this requirement?
VinayVinay (Salesforce Developers) 
Hi Sumit,

Updates a voice call (VoiceCall) record after the call has ended. Use this API to update parameters of a voice call record that are unavailable during the voice call record creation stage. The endpoint is an asynchronous operation.

Something like below.
PATCH /telephony/v1/voiceCalls/0LQRM0000006CSz

{
  "startTime": "2020-08-26T21:21:14Z",
  "endTime": "2019-08-26T21:21:34Z",
  "enqueueTime": "2019-08-26T21:21:34Z",
  "acceptTime": "2019-08-26T21:21:24Z",
  "numberOfHolds": 20,
  "longestHoldDuration": 10,
  "callAttributes": "{\"dateCustomField__c\": \"2019-08-28T21:21:34Z\", \"checkbox__c\": false}"
}

Check below reference.
https://developer.salesforce.com/docs/atlas.en-us.voice_developer_guide.meta/voice_developer_guide/voice_rest_voicecalls_update.htm

Please mark as Best Answer if above information was helpful.

Thanks,