You need to sign in to do that
Don't have an account?
I want a trigger or batch which count week based on Start date
I have 3 fields,start date ,week year count and week start ,i want to count all the week/Year based on start date.
for example start date is 12/01/2018,after 7 days the count will be 1/0,after next 7 days the count will be 2/0, after one year the count will be 0/1 based on start date
for example start date is 12/01/2018,after 7 days the count will be 1/0,after next 7 days the count will be 2/0, after one year the count will be 0/1 based on start date
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
Change your week year count field to a formula field and run through a start date with the following forumla. Sample wireframe