+ Start a Discussion
Ken sfdc1Ken sfdc1 

CTI integration we want to block task insert to account as activity history Trigger code please.

To disable call logging will also need to be handled in the adapter code. Alternatively, outside of CTI adapter code/toolkit, you could write a trigger on the Task object which intercepts the call log that CTI adapter creates and block it before the insert. The CTI adapter makes a Task of type Call and uses fields such as CallDuration. You could detect if that field value is set and block the Task before an insert.

User-added image
Ken sfdc1Ken sfdc1
I just need some trigger code similar to this scenario.
Ken sfdc1Ken sfdc1
I can think of either delete by a batch class selecting these tasks from Account object and delete it.