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
JaanuJaanu 

Platform events trigger to create accounts and cases in Salesforce ?

Hi .. I have a requirement to establish 3rd party integrations with Salesforce. I have created new platform event object within Salesforce. So, the 3rd party system writes the transactions into this new platform event table. As of now, there will be accounts and cases written into this platform event object. So, I need to process whenever there is a payload in this event. I need to check whether the account already exist within the system or not by matching 5 fields (first name, last name, dob, gender etc), if none them are matching, then we need to create an account and case. If some of the fields are matching then, I will have to dump in the new object (where reps, will review manually before they create accounts etc). How to do this and any code will be helpful.