Issue while creating logic app

TSIP Solutions 10 Reputation points
2024-04-08T18:07:00.01+00:00

There are two issue

Issue 1) I am creating one logic app and integrating with outlook mail account and Azure blob storage.

When i am selecting blob name as dynamically Attachment Name then two loop is creating automatically , for each 1 and for each and save it .

After that when i am sending mail, during triggering i am getting below error

InvalidTemplate

Unable to process template language expressions for action 'For_each_1' at line '0' and column '0': 'The template language expression 'triggerBody()['value']' cannot be evaluated because property 'value' doesn't exist, available properties are 'Id, DateTimeReceived, HasAttachment, InternetMessageId, Subject, BodyPreview, Importance, ConversationId, IsRead, IsHtml, Body, From, To, Cc, Bcc, ReplyTo, Attachments'. Please see https://aka.ms/logicexpressions for usage details.'.

Issue 2)

I have configured gmail account and Google drive in Logic app , during triggering i am storing attachment in google drive. But in Google drive i am not able to open attachment.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,890 questions
Windows 365 Business
{count} votes

1 answer

Sort by: Most helpful
  1. Sonny Gillissen 3,346 Reputation points
    2024-05-10T13:14:22.6866667+00:00

    Hi TSIP Solutions,

    Thank you for reaching out on Microsoft Q&A!

    Think the loop is set up wrong. Please do the following:

    • Remove all dynamic content from the 'Send an email (V2)' action and move it out of the loop
    • Now create a loop manually on the triggerBody()['Attachments']
    • Add the 'Send an email (V2)' back in the loop
    • Now select the field 'AttachmentName' again as dynamic content

    Now you should not experience multiple loops, and the mail is sent.

    Please click “Accept answer” if you find this helpful. Feel free to drop additional queries in the comments below!

    Kind regards,

    Sonny

    0 comments No comments