Omnifocus - Mail to task, archive and mark as read

I want to develop a workflow to create task with mail messages (there's a service for that), then archive the message and mark as read.

I've seen some shared documentation but didn't find a solution.

Anyone with similar workflow or any idea how to do it.



For the OmniFocus scripting component of that, you may get more help and ideas on OmniFocus Slack Workspace, which has a reasonably active automation section:

Join our Slack Workspace - The Omni Group