You need to sign in to do that
Don't have an account?
sfdc007
Batch class help needed
Hi,
I have a requirement where i need to write a batch class for which i need help n it
I have a custom object called "PS_TF_Status_Track__c"
I have 3 number fields in it called Hours__c, Minutes__c and days__c
i want to write a batch class which should calculate the milli seconds for all the 3 fields mentioned above and sum it up to a single custom field
Hours -> milli seconds
Minutes -> milli seconds
days -> milli seconds
the single custom field should sum up all the 3 milli seconds together
let me know hw to write it
Pls help me
Thanks in Advance
I have a requirement where i need to write a batch class for which i need help n it
I have a custom object called "PS_TF_Status_Track__c"
I have 3 number fields in it called Hours__c, Minutes__c and days__c
i want to write a batch class which should calculate the milli seconds for all the 3 fields mentioned above and sum it up to a single custom field
Hours -> milli seconds
Minutes -> milli seconds
days -> milli seconds
the single custom field should sum up all the 3 milli seconds together
let me know hw to write it
Pls help me
Thanks in Advance
Could you try the below code. Change the field names according to your object if needed.
Execute Batch From Developer Console: