Send Grid Connector - Send Email (Multiple Attachments)

Published Sep 07 2021 01:36 AM 676 Views
Microsoft

In the scenario when we have a logic app with O365 Trigger - when a new email arrives, and the email comes with multiple attachments; there is a current limitation in Send Grid connector -Send Email V4; where we cannot use the attachments array to send the received attachments all at once in one email.

 

The below logic app shows the limitation scenario:

mshboul_4-1630962837875.png

 

If we used the above structure, the send grid action will fail with the below error:

{
  "error": {
    "code"400,
    "message""Parameter \"Content\" should be provided",
    "source""logic-apis-northcentralus.azure-apim.net",
    "path""choose[3]\\when[1]",
    "policyId""",
    "clientRequestId""ef65bcb8-5ca2-4d8d-b373-05ede281a144"
  }

}

The reason the action fails; is due to the direct mapping from the O365 attachment array to the send grid attachments array; which has a difference in parameter names; such as Content.

 

For Send Grid Connector - Send email (V4); we can manually add the attachments using the individual attachment form; as below:

mshboul_5-1630962909636.png

 

But this will cause each attachment to be sent in a separate email (due to the for each); which is not the desired target of the logic app.

 

By looking into code view, of the attachment array structure; when adding the attachment manually; we find it to be in the below structure:

 "attachments": [
                                    {
                                        "content""@{items('For_each')?['contentBytes']}",
                                        "contenttype""@items('For_each')?['contentType']",
                                        "filename""@items('For_each')?['name']"
                                    }
                                ]
 
So, the work around for this limitation, is to build the above attachments array within the logic app, and pass it as an attachment array to the Send Grid action; as below:
mshboul_2-1630962440623.png

Note: The attachment content from the dynamic content is "@{base64ToString(items('For_each')?['contentBytes'])}"; using it like this causes the send grid action to fail with error:

  {
                "message""The attachment content must be base64 encoded.",
                "field""attachments.0.content",
            }
 
So, we need to switch to Code view, and update the Append Array action to have the below body (we removed the base64ToString expression) :
 {
                                "content""@{items('For_each')?['contentBytes']}",
                                "contenttype""@{items('For_each')?['contentType']}",
                                "filename""@{items('For_each')?['name']}"
                            }

 

Also, the For Each parallelism need to be set to 1; in order to avoid incorrect variable assignments.

 

After having the array ready, we can pass it directly to the send grid action as below:

mshboul_3-1630962760572.png

 

Below is the Full Logic App structure:

mshboul_6-1630963169093.png

 

By this, we can send all received attachment (from the O365) to the Send Grid action; in one execution.

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2726221%22%20slang%3D%22en-US%22%3ESend%20Grid%20Connector%20-%20Send%20Email%20(Multiple%20Attachments)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2726221%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20the%20scenario%20when%20we%20have%20a%20logic%20app%20with%20O365%20Trigger%20-%20when%20a%20new%20email%20arrives%2C%20and%20the%20email%20comes%20with%20multiple%20attachments%3B%20there%20is%20a%20current%20limitation%20in%20Send%20Grid%20connector%20-Send%20Email%20V4%3B%20where%20we%20cannot%20use%20the%20attachments%20array%20to%20send%20the%20received%20attachments%20all%20at%20once%20in%20one%20email.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20below%20logic%20app%20shows%20the%20limitation%20scenario%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mshboul_4-1630962837875.png%22%20style%3D%22width%3A%20431px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308377i2F0BEEAB598B2723%2Fimage-dimensions%2F431x609%3Fv%3Dv2%22%20width%3D%22431%22%20height%3D%22609%22%20role%3D%22button%22%20title%3D%22mshboul_4-1630962837875.png%22%20alt%3D%22mshboul_4-1630962837875.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20we%20used%20the%20above%20structure%2C%20the%20send%20grid%20action%20will%20fail%20with%20the%20below%20error%3A%3C%2FP%3E%0A%3CDIV%3E%7B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22error%22%3C%2FSPAN%3E%3A%26nbsp%3B%7B%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22code%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%3E400%3C%2FSPAN%3E%2C%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22message%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%3E%22%3CSTRONG%3EParameter%26nbsp%3B%5C%22Content%5C%22%26nbsp%3Bshould%26nbsp%3Bbe%26nbsp%3Bprovided%3C%2FSTRONG%3E%22%3C%2FSPAN%3E%2C%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22source%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%3E%22logic-apis-northcentralus.azure-apim.net%22%3C%2FSPAN%3E%2C%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22path%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%3E%22choose%5B3%5D%5C%5Cwhen%5B1%5D%22%3C%2FSPAN%3E%2C%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22policyId%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%3E%22%22%3C%2FSPAN%3E%2C%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3CSPAN%3E%22clientRequestId%22%3C%2FSPAN%3E%3A%26nbsp%3B%3CSPAN%3E%22ef65bcb8-5ca2-4d8d-b373-05ede281a144%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%26nbsp%3B%7D%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CP%3E%7D%3C%2FP%3E%0A%3CP%3EThe%20reason%20the%20action%20fails%3B%20is%20due%20to%20the%20direct%20mapping%20from%20the%20O365%20attachment%20array%20to%20the%20send%20grid%20attachments%20array%3B%20which%20has%20a%20difference%20in%20parameter%20names%3B%20such%20as%20Content.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CP%3EFor%20Send%20Grid%20Connector%20-%20Send%20email%20(V4)%3B%20we%20can%20manually%20add%20the%20attachments%20using%20the%20individual%20attachment%20form%3B%20as%20below%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mshboul_5-1630962909636.png%22%20style%3D%22width%3A%20431px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308379iBE5A8F63E89353C7%2Fimage-dimensions%2F431x556%3Fv%3Dv2%22%20width%3D%22431%22%20height%3D%22556%22%20role%3D%22button%22%20title%3D%22mshboul_5-1630962909636.png%22%20alt%3D%22mshboul_5-1630962909636.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBut%20this%20will%20cause%20each%20attachment%20to%20be%20sent%20in%20a%20separate%20email%20(due%20to%20the%20for%20each)%3B%20which%20is%20not%20the%20desired%20target%20of%20the%20logic%20app.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBy%20looking%20into%20code%20view%2C%20of%20the%20attachment%20array%20structure%3B%20when%20adding%20the%20attachment%20manually%3B%20we%20find%20it%20to%20be%20in%20the%20below%20structure%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22attachments%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%5B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22content%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40%7Bitems('For_each')%3F%5B'contentBytes'%5D%7D%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22contenttype%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40items('For_each')%3F%5B'contentType'%5D%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22filename%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40items('For_each')%3F%5B'name'%5D%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%5D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ESo%2C%20the%20work%20around%20for%20this%20limitation%2C%20is%20to%20build%20the%20above%20attachments%20array%20within%20the%20logic%20app%2C%20and%20pass%20it%20as%20an%20attachment%20array%20to%20the%20Send%20Grid%20action%3B%20as%20below%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mshboul_2-1630962440623.png%22%20style%3D%22width%3A%20510px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308375i5228943C9C5482DE%2Fimage-dimensions%2F510x595%3Fv%3Dv2%22%20width%3D%22510%22%20height%3D%22595%22%20role%3D%22button%22%20title%3D%22mshboul_2-1630962440623.png%22%20alt%3D%22mshboul_2-1630962440623.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%3CU%3E%3CSTRONG%3ENote%3C%2FSTRONG%3E%3C%2FU%3E%3A%20The%20attachment%20content%20from%20the%20dynamic%20content%20is%20%22%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%40%7Bbase64ToString(items('For_each')%3F%5B'contentBytes'%5D)%7D%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%22%3B%20using%20it%20like%20this%20causes%20the%20send%20grid%20action%20to%20fail%20with%20error%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22message%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%3CSTRONG%3EThe%26nbsp%3Battachment%26nbsp%3Bcontent%26nbsp%3Bmust%26nbsp%3Bbe%26nbsp%3Bbase64%26nbsp%3Bencoded%3C%2FSTRONG%3E.%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22field%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22attachments.0.content%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22help%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%3CA%20href%3D%22http%3A%2F%2Fsendgrid.com%2Fdocs%2FAPI_Reference%2FWeb_API_v3%2FMail%2Ferrors.html%23message.attachments.content%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttp%3A%2F%2Fsendgrid.com%2Fdocs%2FAPI_Reference%2FWeb_API_v3%2FMail%2Ferrors.html%23message.attachments.content%3C%2FA%3E%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3ESo%2C%20we%20need%20to%20switch%20to%20Code%20view%2C%20and%20update%20the%20Append%20Array%20action%20to%20have%20the%20below%20body%20(we%20removed%20the%26nbsp%3B%3CSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Ebase64ToString%3C%2FSPAN%3E%3C%2FSTRONG%3E%20expression)%20%3A%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%7B%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22content%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%3CSTRONG%3E%40%7Bitems('For_each')%3F%5B'contentBytes'%5D%7D%3C%2FSTRONG%3E%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22contenttype%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40%7Bitems('For_each')%3F%5B'contentType'%5D%7D%22%3C%2FSPAN%3E%3CSPAN%3E%2C%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22filename%22%3C%2FSPAN%3E%3CSPAN%3E%3A%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3E%22%40%7Bitems('For_each')%3F%5B'name'%5D%7D%22%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%3E%3CSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%7D%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAlso%2C%20the%20For%20Each%20parallelism%20need%20to%20be%20set%20to%201%3B%20in%20order%20to%20avoid%20incorrect%20variable%20assignments.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAfter%20having%20the%20array%20ready%2C%20we%20can%20pass%20it%20directly%20to%20the%20send%20grid%20action%20as%20below%3A%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mshboul_3-1630962760572.png%22%20style%3D%22width%3A%20434px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308376iBD809328BAAC736C%2Fimage-dimensions%2F434x321%3Fv%3Dv2%22%20width%3D%22434%22%20height%3D%22321%22%20role%3D%22button%22%20title%3D%22mshboul_3-1630962760572.png%22%20alt%3D%22mshboul_3-1630962760572.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBelow%20is%20the%20Full%20Logic%20App%20structure%3A%3C%2FP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22mshboul_6-1630963169093.png%22%20style%3D%22width%3A%20429px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F308381i852F652EAE0CA3F1%2Fimage-dimensions%2F429x657%3Fv%3Dv2%22%20width%3D%22429%22%20height%3D%22657%22%20role%3D%22button%22%20title%3D%22mshboul_6-1630963169093.png%22%20alt%3D%22mshboul_6-1630963169093.png%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBy%20this%2C%20we%20can%20send%20all%20received%20attachment%20(from%20the%20O365)%20to%20the%20Send%20Grid%20action%3B%20in%20one%20execution.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2726221%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20this%20blog%20we%20will%20discuss%20a%20current%20limitation%20in%20sending%20multiple%20attachments%20(retrieved%20from%20O365%20Trigger%20-%20When%20a%20new%20email%20arrives)%20through%20Send%20Grid%20Connector%2C%20and%20a%20workaround%20to%20over%20come%20this%20limitations%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2726221%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELogic%20Apps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2764357%22%20slang%3D%22en-US%22%3ERe%3A%20Send%20Grid%20Connector%20-%20Send%20Email%20(Multiple%20Attachments)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2764357%22%20slang%3D%22en-US%22%3E%3CP%3EGsm-Asia.com%20-%20mobile%20phone%20reviews%2C%20news%2C%20specifications%20and%20more...%3C%2FP%3E%3CP%3EGsm-Asia%20-%20%3CA%20href%3D%22https%3A%2F%2Fgsm-asia.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgsm-asia.com%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.gsm-asia.com%2Fbrand%2Fapple%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.gsm-asia.com%2Fbrand%2Fapple%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.gsm-asia.com%2Fbrand%2Fsamsung%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.gsm-asia.com%2Fbrand%2Fsamsung%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.gsm-asia.com%2Fbrand%2Fxiaomi%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.gsm-asia.com%2Fbrand%2Fxiaomi%3C%2FA%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fmulti-talents.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fmulti-talents.com%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Sep 07 2021 01:36 AM
Updated by: