I have a requirement where we need to send an order confirmation mail to related contact when the order status is confirmed and two other fields from Product object satisfies certain value. Need to wait 15 minutes before sending this mail. During this wait time, permitted users should be able to cancel the mail send from a button implemented in the order record page. Questions:
- Since I need to add 15 minutes wait after the apex action to check the custom Product field values cant go with the scheduled path, is there any other way for this
- The button to cancel the email send should disappear after 15 minute wait time- how can I implement this
Thanks in advance!