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

Apex to email Error Log



does anyone have ideas on how to make apex to email me error log after I upsert records via data loader bulk process.


Here is what's happening.


Every morning a file is dropped into a directory on the nework. Apex Loader picks it up and tries to upsert the records and spits out error file. Everything works to this point, but I have to email that error file to our people every morning. I know how to setup a java program to grab file and email it anywhere, but our firewall does not allow connections to gmail and email clients like that and I do not have settings for our MS exchange server. Is there a way to create an apex job to grab the file and email it to me? As far as I know every bulk job results files are saved in SF, the question is how can I access those via Apex.


No need for detailed code, if you don't have time.


Thank you.