Thanks a lot, @Matt_Blais, needed a few days to get back to this topic.
I’ve set this up as a CRON-style job (there is another action that connects the mail with the contact, if that exists already):
The main remaining question for me to use this is, how do I pass the targetEntityId
into the script? I think it should exist in [Step 1 Email Message].[Contact].[Public Id]
but I’m not sure how to pass it into the script.
(as mentioned elsewhere, the whole scripting interface is unclear to me as the documentation is confusing to me)
Thanks a lot,
Wolf