question

TamegueJulesSaurelPericle-7732 avatar image
0 Votes"
TamegueJulesSaurelPericle-7732 asked TamegueJulesSaurelPericle-7732 commented

Azure Logic app with condition

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DavidBroggy-5270 avatar image
0 Votes"
DavidBroggy-5270 answered TamegueJulesSaurelPericle-7732 commented

hi @TamegueJulesSaurelPericle-7732
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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello David,
I do have an attachment that retrieve the numerator and denominator.
However, if the numerator is equal to zero I do not want to an email with the attachment. How should I proceed with logic app? Thanks

0 Votes 0 ·
BrunoLucas-9843 avatar image
0 Votes"
BrunoLucas-9843 answered

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




image.png (12.0 KiB)
image.png (38.1 KiB)
image.png (18.4 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.