You need to sign in to do that
Don't have an account?
Russell baker 1
Want to add all opportunities in pipeline and closed won into Custom Object(Budget) realted list according to closed date.
I created a custom object budget which will store company budget for every month. I created opportunity related list into budget and I want to show all opportunities into that related list according to close date. Let say if any opportunity close date is Jan so it should be show under Jan budget. How can I achieve this do I need to create trigger to pull all opportunities into budget related list.
You need to create a Batch Class and needs to execute the batch class at the end of every month.
Please find the below code.
Batch Class: Schedule class