cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frixel Post Prodigy
Post Prodigy

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
Community Support

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.

View solution in original post

5 REPLIES 5
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 Post Prodigy
Post Prodigy

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 Post Prodigy
Post Prodigy

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
Community Support

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.

View solution in original post

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,621)