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

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.
2,816 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.
4,320 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Thomas Meads 1,506 Reputation points


    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