cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frixel
Level: Powered On

Sent a mail when certain numbers in the subject and / or body.

I want to create a flow where an email is sent if there are certain numbers in the subject and / or body.

Now in this Flow for any mail is sent a new mail. so what goes wrong? 

 

Flow1.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Sent a mail when certain numbers in the subject and / or body.

Hi @frixel ,

 

If you want to send an email when certain numbers in the subject/body, please try with contains.

 

When using function contains, we should provide value of matching types. So you need to use a string function to convert the integer to string.

 

I have set up the flow likes below for your reference.

 

The functions used in each field:

 

string('999')

string('666')

string('999')

string('666')

 

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 REPLIES 5
Highlighted
Super User
Super User

Re: Sent a mail when certain numbers in the subject and / or body.

@frixel your condition is using AND, so it will only send the email if the Subject equals 999 and the subject equals 666 and the body equals 999 and the body equals 666. Select OR instead and use contains instead of equals and that should work for you.

Rob
Los Gallardos

frixel
Level: Powered On

Re: Sent a mail when certain numbers in the subject and / or body.

Hi @RobElliott 

 

See the flow, then it is the same.

 

Flow1.pngFlow2.png

Super User
Super User

Re: Sent a mail when certain numbers in the subject and / or body.

What was the subject of the incoming email? I think you need to try it with contains instead of is equal to.

Rob
Los Gallardos

frixel
Level: Powered On

Re: Sent a mail when certain numbers in the subject and / or body.

Hi @RobElliott 

 

I had "equal" in the condition but that doesn't work.
I have now used "contains" but I also get an error message.

 

Flow1.png

Community Support Team
Community Support Team

Re: Sent a mail when certain numbers in the subject and / or body.

Hi @frixel ,

 

If you want to send an email when certain numbers in the subject/body, please try with contains.

 

When using function contains, we should provide value of matching types. So you need to use a string function to convert the integer to string.

 

I have set up the flow likes below for your reference.

 

The functions used in each field:

 

string('999')

string('666')

string('999')

string('666')

 

1.PNG

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
>