cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
Super User III
Super User III

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

Highlighted
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

Highlighted
Super User III
Super User III

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

Highlighted
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

Highlighted
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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,774)