I have a logic app in which I want to give a condition i.e. for get blob content if the file is not present than it should skip that part and send other files as attachment. How can we do this?

Abhinesh Kumar Lal Karn 0 Reputation points
2024-04-02T16:23:18.2+00:00

User's image

In the above image if get blob content3 gets don't contain any file then I want to skip that step otherwise send other attachments.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,530 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,357 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Thomas Meads 1,586 Reputation points
    2024-04-14T10:23:12.1966667+00:00

    Hi,

    Having looked at this I think the only way of doing this in logic app is through if statements checking each file and calling a separate send email with different combinations of files being added. The issue is that send email doesn't allow for conditional attachments in that if an attachment is added in the UI it will expect to be sent.

    Alternatively you could look at triggering an Azure function which will zip the files which contain data and send that via the send email action.

    Hope this helps.

    0 comments No comments

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.