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
Malli GMalli G 

read csvfile through trigger

hai all
 when i am trying to insert a new record if it is already existing database it throws an error ,but i want those Errors wil be come on csv file ,can we do this on trigger give me some example
vikrant kumarvikrant kumar

Use database.saveresult
.We cannot get csv files from trigger.
1.U can store those records in a list and update in Some Custom Object from which u can retrieve.
2.Or use send mail functionality to send details of the data in list.
Malli GMalli G
thank you vikrant