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
aklkkaklkk 

how to write a trigger on account aobject for updating and crating new ?

Hi Everyone

how to write a trigger on Account object if the inserting new record but all ready  record is exist then update if not exist then create new record ?

Thanks
aklkk
Raj VakatiRaj Vakati
I can suggest use the duplicate rules .. so that you can see option before saving new records 

https://trailhead.salesforce.com/en/content/learn/modules/sales_admin_duplicate_management/sales_admin_duplicate_management_unit_2
aklkkaklkk
Hi Raj Vakati

its problem that Some Account person Account Name same but Address and city is same but Phone No is Diffrent so that update the phone no if not found any maching then Create a New Record 
how is it possible??