You need to sign in to do that
Don't have an account?
Prateek Kumar 11
Send one email per data load job
Hi All,
I have got a situation here. I'm our org we need to provide status via email when a data load completes. The data load job updates the owner on a particular object(say account) and the trigger on that object then fires a queueable to update the owner on an object records related to the account. Once this queueable completed, it enqueues another queueable to change owner for another object records related to the account.
For any errors that are occurring in this complex process we are storing those in a custom object.
Currently, I have created a solution that sends an email when the final queueable completes. However, the problem arises when we do a data load to change the owner on accounts. Since, Salesforce breakdowns the records into batches of maximum 200 each we receive multiple emails depending on the number of batches.
The solution I'm looking for is to send 1 email for the entire data load job .
Could anyone help me find a solution to this.
Thanks
I have got a situation here. I'm our org we need to provide status via email when a data load completes. The data load job updates the owner on a particular object(say account) and the trigger on that object then fires a queueable to update the owner on an object records related to the account. Once this queueable completed, it enqueues another queueable to change owner for another object records related to the account.
For any errors that are occurring in this complex process we are storing those in a custom object.
Currently, I have created a solution that sends an email when the final queueable completes. However, the problem arises when we do a data load to change the owner on accounts. Since, Salesforce breakdowns the records into batches of maximum 200 each we receive multiple emails depending on the number of batches.
The solution I'm looking for is to send 1 email for the entire data load job .
Could anyone help me find a solution to this.
Thanks
- Monitoring Bulk Data Load Jobs May I suggest you please refer the below link for reference.
- https://help.salesforce.com/articleView?id=monitoring_async_api_jobs.htm&type=0
Hope it will be helpful.Please mark it as best answer if the information is informative.
Thanks
Rahul Kumar