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
Dosbol TDosbol T 

Schedule email reminders for overdue invoices with the the associated invoices being generated

Dear Community, would you please help me with creating a trigger for scheduling email reminders for overdue invoices with the the associated invoices being generated? Will appreciate any support. Thanks in advance. 
Abdul KhatriAbdul Khatri
Hi Dosbol,

It looks like you are looking for some schedule job that runs and pick those overdue invoices for sending emails. You can achieve this with the following Salesforce Options

Batch Apex  - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
                       https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_batch                      

Apex Scheduler - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm
                             https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_scheduled

Let me know if this helps