1

I have a record-triggerd Flow that runs on Create and Update of Email Message.

However, when I just open an email message (that's already been received weeks ago) the flow triggers for some reason. Are there entry criteria I should be setting on the flow?

1 Answer 1

2

There's a known issue for this that came about after the introduction of Enable Unread/Read on Compact Case Feed in Winter '20.

EmailMessage trigger gets invoked when viewing the message in feeditem

Interestingly, this has been requested as a feature for a while - but, this is only happening when viewing the email message through the feed. It's actually firing when you click on the info icon (or the expand icon) in the screenshot below (apex trigger and record-triggered flows).

enter image description here

You can workaround this by adding an entry condition in your record-triggered flow to not fire when Status changes on EmailMessage since that is the update that is occuring - changing from 0(New) to 1/(Read).

enter image description here

Otherwise, you could set it to only run on create if you don't actually need the update condition as it's not clear, from your question, if you are doing anything in that scenario.

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.