{"id":329,"date":"2026-12-01T02:00:00","date_gmt":"2026-12-01T02:00:00","guid":{"rendered":"https:\/\/smartsource.com.sg\/blog\/?p=329"},"modified":"2026-11-30T13:48:07","modified_gmt":"2026-11-30T13:48:07","slug":"how-to-stop-a-shared-mailbox-flow-from-importing-an-attachment-twice","status":"publish","type":"post","link":"https:\/\/smartsource.com.sg\/blog\/how-to-stop-a-shared-mailbox-flow-from-importing-an-attachment-twice\/","title":{"rendered":"How to stop a shared-mailbox flow from importing an attachment twice"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If a Power Automate flow saves email attachments to a document library or imports them into a business system, test what happens when the same message is processed twice. Microsoft notes that Defender Safe Attachments with Dynamic Delivery can cause an email trigger to run twice, and the first run may not contain the attachments.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Check the attachment before importing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Inspect Run history for a sample message. If the flow has not received usable attachment content, do not create an empty file or mark the import complete. Fetch the attachment explicitly when appropriate for the connector and account permissions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Keep a record of successful imports<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In a test flow, record the mailbox, message and attachment identifiers after a successful import. Use a destination or tracking store that can enforce uniqueness on that key so overlapping runs cannot both create the same record. Keep failed imports visible for review rather than treating them as complete.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">See Microsoft\u2019s <a href=\"https:\/\/learn.microsoft.com\/en-us\/connectors\/office365\/\">Office 365 Outlook connector documentation<\/a> for trigger limitations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If a Power Automate flow saves email attachments to a document library or imports them into a business system, test what happens when the same message is processed twice. Microsoft&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-329","post","type-post","status-publish","format-standard","hentry","category-howtos"],"_links":{"self":[{"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/posts\/329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/comments?post=329"}],"version-history":[{"count":1,"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/posts\/329\/revisions"}],"predecessor-version":[{"id":330,"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/posts\/329\/revisions\/330"}],"wp:attachment":[{"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/media?parent=329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/categories?post=329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartsource.com.sg\/blog\/wp-json\/wp\/v2\/tags?post=329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}