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
Kumar_ShahKumar_Shah 

CDC vs Platform Events

Hello,

I would like to call REST API after updating an account record only if account status = active and type = 'employer', I can either call Change Data Capture (CDC) or Platform Events. Which one is better and why?

Thanks in advance.
AbhinavAbhinav (Salesforce Developers) 
Hi Kumar,

Check below link to understand the difference

https://salesforce.stackexchange.com/questions/242216/change-data-capture?noredirect=1&lq=1

Thanks!