0

I need to have an approval process to aprov/reject a record but at the same time I need that if the approver user not respond before 72 hours, the record is automatically rejected.

I have an approval process. In adittion, I have a process builder that has a scheduled action that calls an apex class that reject the lock record.

I also need that if the user manually rejects the record, another user receives an email alert. But if the registration is automatically rejected (by the Apex class), the user receives another different email alert.

I don't where or how establish this difference between the alert emails.

0

You can maybe create a custom formula field, in which it will maintain time difference between approval sent & current time.

Then depending upon value of that field, you can take further actions.

| improve this answer | |
  • Thanks for the answer. But where you put the alert emails? Now I have one alert in the method (the 'automatic' email alert) and another in the final actions of the approval process (but this is wrong because always send this alert email). But I can't put the second alert email (the 'manual' alert) in the method of the classe because don't send the email until 72 hours and I need the alert be send when the record will be rejected/approved. – Davidenserio Oct 10 '19 at 7:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.