
Announcements
TLDR
-Need to strip digital signature from email to parse attachments.
-Struggling to forward the email back to itself, without the Forward An Email V2 looping infinitely. I can not use send an email since the emails are digitally signed, and therefore cant create a for each loop to send a new email for each attachment.
1. When Email New Email Arrives
2. Grab Domain
3a. If domain IS NOT ours (it is digitally S/MIME signed)
i. Forward email back to ourselves removing signature, allowing email to be read
ii. Flow triggers again with our domain now, like recursion
3b. If Domain IS OURS
i. Enter attachment parsing (already works fine)
Hello! I was trying to create a power automate flow that automatically grabs the attachments of an outlook email, formats, filters, and places them into a SharePoint folder. It worked fantastic with my own testing, until I realized that the majority of the emails being sent to the shared inbox are digitally signed with S/MIME.
I found one other person who posted their solution to this problem. Their method was forwarding the emails to another inbox which removes the digital signature and then resends them again non digitally signed. This allows the flow to properly parse and read the emails.
I would prefer to not tank or use another email inbox as the intermediate link and was trying to forward the email back to itself (the shared inbox) and this is where my problems are. I can not send a new email for each attachment because it can't read the attachments in the first place and the forward V2 function seems janky (though it's my only solution afaik).
When I was able to forward the email back to itself it enters an endless loop that I can't really explain too. Please see below, the left side is what was originally in the flow and works fine. The condition checking the domain seems okay as well, so it appears to be just within the forward an email function. Is there an easier solution to this or another way someone can come up with?
I should add I have tried using a do while loop to counteract the infinite loop by initializing a Boolean above, then setting the exit condition to true after the email is sent.