{"id":1133,"date":"2023-12-29T09:46:45","date_gmt":"2023-12-29T09:46:45","guid":{"rendered":"https:\/\/poiseddevelopers.com\/reality-tech\/?p=1133"},"modified":"2024-04-26T11:46:46","modified_gmt":"2024-04-26T11:46:46","slug":"send-sharepoint-list-item-attachments-in-the-email-using-power-automate","status":"publish","type":"post","link":"https:\/\/poiseddevelopers.com\/reality-tech\/send-sharepoint-list-item-attachments-in-the-email-using-power-automate\/","title":{"rendered":"Send SharePoint list item attachments in the email using Power Automate"},"content":{"rendered":"<p><span class=\"TextRun SCXW32556567 BCX0\" lang=\"EN-IN\" xml:lang=\"EN-IN\" data-contrast=\"auto\" data-uw-rm-lang=\"false\"><span class=\"NormalTextRun SCXW32556567 BCX0\">The ability to efficiently send multiple attachments\u00a0<\/span><span class=\"NormalTextRun SCXW32556567 BCX0\">using power automate\u00a0<\/span><span class=\"NormalTextRun SCXW32556567 BCX0\">via email is crucial. This blog post will guide you through the detailed process of achieving this using the powerful capabilities of Microsoft Power Automate. Whether\u00a0<\/span><span class=\"NormalTextRun SCXW32556567 BCX0\">you\u2019re<\/span><span class=\"NormalTextRun SCXW32556567 BCX0\">\u00a0sharing documents, images, or other essential files, this feature ensures a more versatile and streamlined communication experience.<\/span><\/span><span class=\"EOP SCXW32556567 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<p><strong>Step: 1<\/strong>\u00a0<span class=\"NormalTextRun CommentStart CommentHighlightPipeClicked CommentHighlightClicked SCXW223922131 BCX0\">Add the \u201c<\/span><span class=\"NormalTextRun CommentHighlightClicked SCXW223922131 BCX0\">When an item is created<\/span><span class=\"NormalTextRun CommentHighlightClicked SCXW223922131 BCX0\">\u201d action<\/span><span class=\"NormalTextRun CommentHighlightPipeClicked SCXW223922131 BCX0\">.<\/span><\/p>\n<p><strong>Step: 2<\/strong>\u00a0<span class=\"NormalTextRun SCXW239609173 BCX0\">Select the\u00a0<\/span><span class=\"NormalTextRun SCXW239609173 BCX0\">S<\/span><span class=\"NormalTextRun SCXW239609173 BCX0\">ite address and List name where an item, along with its attachments, will be added.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1138 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-01-1-2.webp\" alt=\"img-01\" width=\"574\" height=\"256\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-01-1-2.webp 574w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-01-1-2-300x134.webp 300w\" sizes=\"auto, (max-width: 574px) 100vw, 574px\" \/><\/p>\n<p><strong>Step: 3\u00a0<\/strong>Add the \u201cInitialize variable\u201d action.<\/p>\n<p>Assign a name to the variable, such as \u201cAttachmentArray,\u201d and specify its type as an array. This variable will be used to create an array containing all the attachments of the newly created item.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1140 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-02-1-1.webp\" alt=\"img-02\" width=\"565\" height=\"179\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-02-1-1.webp 565w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-02-1-1-300x95.webp 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/p>\n<p><strong>Step: 4\u00a0<\/strong>Add another action \u201cGet attachments\u201d and add the Site Address and List Name. Set the \u201cId\u201d field to the ID of the \u201cWhen an item is created\u201d trigger using the Dynamic content available on the right, as shown below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1141 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-03-1-1.webp\" alt=\"img-03\" width=\"913\" height=\"431\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-03-1-1.webp 913w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-03-1-1-300x142.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-03-1-1-768x363.webp 768w\" sizes=\"auto, (max-width: 913px) 100vw, 913px\" \/><\/p>\n<p><strong>Step: 5<\/strong>\u00a0Add an action \u201cGet attachment content\u201d and select the Site Address and List name. Set the \u201cId\u201d to the ID of the \u201cWhen an item is created\u201d trigger from the Dynamic content displayed on the right.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1142 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-04-2-1.webp\" alt=\"img-04\" width=\"915\" height=\"413\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-04-2-1.webp 915w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-04-2-1-300x135.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-04-2-1-768x347.webp 768w\" sizes=\"auto, (max-width: 915px) 100vw, 915px\" \/><\/p>\n<p><strong>Step: 6<\/strong>\u00a0Set the file identifier to the ID obtained from the Dynamic content of the \u201cGet attachments,\u201d as illustrated below. Once users set the File Identifier, an \u201cApply to each\u201d loop will be added automatically to retrieve the attachment content for each file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1144 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-05-1-1.webp\" alt=\"img-05\" width=\"927\" height=\"547\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-05-1-1.webp 927w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-05-1-1-300x177.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-05-1-1-768x453.webp 768w\" sizes=\"auto, (max-width: 927px) 100vw, 927px\" \/><\/p>\n<p><strong>Step: 7\u00a0<\/strong>Insert the \u201cAppend to array variable\u201d action after the \u201cGet attachment\u201d action, within the \u201cApply to each\u201d loop. Choose the variable \u201cAttachmentArray\u201d as the name, which was created at the beginning of the flow.<\/p>\n<p>Assign the Value to the following JSON structure:<\/p>\n<ul>\n<li><strong>Name<\/strong>: DisplayName of the \u201cGet attachments\u201d<\/li>\n<li><strong>ContentBytes<\/strong>: Attachment content of \u2018Get attachment content\u2019.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1145 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-06-1-1.webp\" alt=\"img-06\" width=\"566\" height=\"495\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-06-1-1.webp 566w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-06-1-1-300x262.webp 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/p>\n<pre class=\"php\" style=\"background-color: #f5f2f0;\"> \r\n{\r\n\r\n\"Name\": @{items('Apply_to_each')?['DisplayName']},\r\n\r\n\"ContentBytes\": @{body('Get_attachment_content')}\r\n\r\n}\r\n<\/pre>\n<p><strong> Step: 8<\/strong>\u00a0Last, add an action \u201cSend an email\u201d. Additionally, include the \u2018Subject\u2019 and \u2018Body\u2019 for the email.<\/p>\n<p>Set the value of Attachments to AttachmentArray variable.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1147 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-07-1-1.webp\" alt=\"img-07\" width=\"541\" height=\"567\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-07-1-1.webp 541w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-07-1-1-286x300.webp 286w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/p>\n<p><strong>Step: 9<\/strong>\u00a0The setup of the flow concludes in just a few simple steps.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1148 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-08-1-1.webp\" alt=\"img-08\" width=\"641\" height=\"499\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-08-1-1.webp 641w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-08-1-1-300x234.webp 300w\" sizes=\"auto, (max-width: 641px) 100vw, 641px\" \/><\/p>\n<p><strong>Step: 10\u00a0<\/strong>Generate a new entry in the SharePoint list and attach multiple files to it. An item has been created and three attachments have been added to it. Users will receive an email with the attachments, as illustrated below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-1149 size-full\" src=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-09-1-1024x235-1.webp\" alt=\"img-09\" width=\"1024\" height=\"235\" srcset=\"https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-09-1-1024x235-1.webp 1024w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-09-1-1024x235-1-300x69.webp 300w, https:\/\/poiseddevelopers.com\/reality-tech\/wp-content\/uploads\/2024\/03\/IMG-09-1-1024x235-1-768x176.webp 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Conclusion<\/strong>:\u00a0In conclusion, Power Automate offers a user-friendly and powerful solution for sending multiple attachments in emails. By following this step-by-step guide, you can enhance your email communication experience, making it more efficient and versatile.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ability to efficiently send multiple attachments\u00a0using power automate\u00a0via email is crucial. This blog post will guide you through the detailed process of achieving this using the powerful capabilities of Microsoft Power Automate. Whether\u00a0you\u2019re\u00a0sharing documents, images, or other essential files, this feature ensures a more versatile and streamlined communication experience.\u00a0 Step: 1\u00a0Add the \u201cWhen an [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":1134,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[19],"tags":[],"class_list":["post-1133","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-power-automate"],"acf":[],"_links":{"self":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/comments?post=1133"}],"version-history":[{"count":3,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1133\/revisions"}],"predecessor-version":[{"id":2236,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/posts\/1133\/revisions\/2236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media\/1134"}],"wp:attachment":[{"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/media?parent=1133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/categories?post=1133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/poiseddevelopers.com\/reality-tech\/wp-json\/wp\/v2\/tags?post=1133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}