You need to sign in to do that
Don't have an account?

Trigger Update Custom Object
Hi...
I have a custom object that I would like to change the value of field PREVIOUS_FIRE this my object, when the PreviousFireTime of CronTrigger value be changed.
How do I update the field from my custom object based on field CronTrigger?
Thank you
I have a custom object that I would like to change the value of field PREVIOUS_FIRE this my object, when the PreviousFireTime of CronTrigger value be changed.
How do I update the field from my custom object based on field CronTrigger?
Thank you
thanks,http://www.forcexplore.com/2014/07/wrapper-class-in-salesforce.html
Thank you
But I do not know which will be performed the action .
I change that has changed the date of the last execution.
Unfortunately, we cannot write a trigger on the CronTrigger object.
One workaround which you can probably try out is to:
1.) Create a Custom Setting object (http://help.salesforce.com/HTViewHelpDoc?id=cs_about.htm&language=en_US) and save the crontrigger object field values in it.
2.) Create a scheduled Apex class to check if the PreviousFireTime has changed from the value stored in custom setting record and update the custom object field if so.
Just a thought!
If this answers your question, please mark this as the Best Answer for this post, so that others can benefit from this post.
Thanks,
Shashank
anything like:
?
has the possibility within the same table I use the value of field custom object and the value of field CronTrigger?
That would solve my problem.