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
Sumanta Biswas 11Sumanta Biswas 11 

On any new Contact record insert, Check if Account is associated If associated, then delete the Account and create Default Account as

Hi,
I need to write a trigger which has the below requirement.
  1. On any new Contact record insert, Check if Account is associated
  • If associated, then delete the Account and create Default Account as “LTI_Timestamp”(LTI_25012020:MM:SS)
  • If not associated, then create Default Account as “LTI_Timestamp”(LTI_25012020:MM:SS)
Thank you for your assistance.