attach multiple attachments smtp connector logic app

SriRaghavendran Prabhakaran 320 Reputation points
2024-12-19T16:43:39.1066667+00:00

Hello team.

I have a requirement to attach multiple dynamic attachments to send with email from SMTP connector of logic app. here I am consolidating all the attachment with Append Array variable (content type, content) as shown below. In the attachment section of SMTP connector, the content type is mandatory but here i am not able to pass as declared array variable must have all the details. let me know how can exclude the content type of SMTP connector to my scenario . Attached screen shot to your reference. Let me know for any more details.

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,271 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 23,056 Reputation points Microsoft Employee
    2024-12-20T09:43:03.82+00:00

    @SriRaghavendran Prabhakaran Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    In Append to Array variable action try adding another parameter with contentType as shown below in the similar thread here.

    [{ "ContentType": "Content type", "ContentData": "Content data" }, { "ContentType": "Content type", "ContentData": "Content data" }]
    
    

    If you are still facing the issue, help us with the error message and actions involved in your workflow.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.