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
Ganesh PrasathGanesh Prasath 

Cross object trigger to check and insert is unavailable

Hi we have a scenario where a user creates a task and enters new contacts met during a site visit, this value entered in the task object has to be checked on the contacts object and if the value is not present already a new record has to be inserted. Am a newbie to apex programming any help would be much appreciated.

in short "salesforce trigger to check if a record value entered in task object is present in the contact object and insert if not available"