Azure Logic app with condition

Tamegue, Jules Saurel Pericle 1 Reputation point
2022-04-22T18:19:33.903+00:00

Hi,
I want to check if my attachment has a numerator equal to 0 then no to send an email. Please could you help out?

P.S the numerator variable fonction is a string.

Thank you

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

2 answers

Sort by: Most helpful
  1. David Broggy 6,291 Reputation points MVP Volunteer Moderator
    2022-04-23T01:46:15.02+00:00

    hi @Tamegue, Jules Saurel Pericle
    Are you just talking about the 'condition' logic app?
    logic-apps-control-flow-conditional-statement

    if this helps please accept my solution and upvote. thanks


  2. Bruno Lucas 4,436 Reputation points MVP
    2022-04-25T07:10:38.057+00:00

    Hi,

    Are you using outlook?

    If you want to check if an email has attachments when you receive the email, you can do by using the "When a new email arrives" trigger and a condition task to check if the email has attachments

    195991-image.png

    if you are building the email to be sent, you should have that info when (if) you add the attachment

    195993-image.png

    is that what you are doing? how is your logic to add attachment's? if the attachment's are on a Array, you need to count by using an expression like "length" : https://stackoverflow.com/questions/65832633/logicapp-how-to-use-length-to-check-if-collection-is-empty

    Other providers like gmail follow similar approach

    195959-image.png

    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.