• Admin 2511
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I have a custom object to track Call Logs in my app. This object contains a Date field to track the call date. I need a batch class to even out the call logs so that number of calls entered will be balanced per day. Suppose I have log count per day like the following :
Day 1 - 20 calls
Day 2 - 10 calls
Day 3 - 30 calls
I need to update this to:
Day 1 - 20 calls
Day 2 - 20 calls
Day 3 - 20 calls
Since I have to manually update each log date to accomplish this I have trouble writing a bulkified code. Is there any standard algorithms for such a use case. This scheduled class can be run on a weekly or monthly basis.
I have a custom object to track Call Logs in my app. This object contains a Date field to track the call date. I need a batch class to even out the call logs so that number of calls entered will be balanced per day. Suppose I have log count per day like the following :
Day 1 - 20 calls
Day 2 - 10 calls
Day 3 - 30 calls
I need to update this to:
Day 1 - 20 calls
Day 2 - 20 calls
Day 3 - 20 calls
Since I have to manually update each log date to accomplish this I have trouble writing a bulkified code. Is there any standard algorithms for such a use case. This scheduled class can be run on a weekly or monthly basis.