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

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
RobElliott
Super User
Super User

@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

Hi @RobElliott 

 

See the flow, then it is the same.

 

Flow1.pngFlow2.png

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

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

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
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (77,425)