
1 resposta
You could write triggers on Case, Task and Event that would update the field on the Case record whenever those changes occur. You could also do this using Process Builder flows. The Task and Event trigger logic should execute on "after insert" and test whether the WhatId field looks up to a Case record. If so, set the Case date field and update the Case record. The Case trigger logic should execute on "before update" and test whether either Status or Priority fields have changed (by comparing new and old records). If so, set the Case date field. No need to update, as you're already in the update trigger.