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
Gouse Mohiddin 4Gouse Mohiddin 4 

How i can achive this?

Send total balance of Bank Account to account holder (which is a contact) on first day of every month.
Rounak SharmaRounak Sharma
hello Gouse,
For this scenario we need to use a scheduler. with the help of that we can send it on first day of every month and you can write a apex class implement scedulable and the logic in it. for that you can refer the below link
https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_scheduled
or you can follow this
Setup -> Develop -> Classes
You will see a "Schedule Apex" button. You can set up the timing from there.

Please let me know if it helps in any way.
Thanks
Deepali KulshresthaDeepali Kulshrestha
Hi, Gouse 

You can used Scheduled Apex to send balance on first day of every month.
Use the Apex scheduler and the Schedulable interface if you have specific Apex classes that you want to run on a regular basis, or to run a batch Apex job using the Salesforce user interface.
you can refer below link:

https://help.salesforce.com/articleView?id=code_schedule_batch_apex.htm&type=5
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


I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com