3

I am wondering if time-based workflow rules cause triggers to fire. The use-case is I use a trigger to look for a field to be checked and then send an email out via a trigger (workflow rule is not an option because it requires BCC addresses). The email also looks for a particular attachment in the notes and attachments section of the opportunity. This attachment is automatically uploaded via a third-party, but it takes a few seconds for it to show up... currently, the email gets sent out before the attachment is uploaded.

I am wondering if a time-based workflow rule to update a field on the opportunity will still cause the trigger to fire. If so, I believe this would solve my issue of the email being sent out before the attachment is there.

1
  • 2
    If the Time-Based Workflows update any records in an object and if there is a trigger on update, then yes. They would execute the triggers on the object.
    – Bugude
    Commented Jun 7, 2016 at 19:16

1 Answer 1

7

Any field update from a Workflow Rule/Process Builder/Apex Trigger will cause update triggers on affected records to fire.

2
  • Hi @Adrian , I have got similar scenario where time based WF rule updates a field on some records at certain time as per rule criteria but trigger(after update) is not executing due to that field update. While manually updating the records, fires the trigger correctly. What should I check? Also is there any other way to fire the trigger in that case?
    – Ashish
    Commented Sep 1, 2020 at 9:03
  • Please try to avoid asking complex questions via Comment. If you want to dig into something you are investigating, please ask a new Question instead.
    – Adrian Larson
    Commented Sep 1, 2020 at 14:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .