cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Craig_Cowley
Resolver I
Resolver I

Send Email to a Name in a form

Hi all,

 

I'm trying to work out if there is a way to send an email to someone named in a form?

 

I've created this simple form to demonstrate, a name is entered in as text.

MS Form.png

Is it then possible to search users to retrieve email address and send an email?

MS Flow.png 

If the above isn't possible could the text field be input as harry.newbie and then search to find the full email address from this? I ask this because we have some users that have givenname.surname@company.com and some which are givenname.surname@uk.company.com (uk could be other counties).

 

Thanks in advance

 

Craig

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Expiscornovus 

No the person submitting the form is different the the name added.

 

I've now tried submitting the form with harry.newbie format and it seems to work with the O365 search for user. I've tested with my details and am about to test with a colleague. It does however rely on the person using the correct format, but I've added a note to the form question.

 

Form works.png

Unless there is another better way of doing this?

 

Thanks for the response

 

Craig

View solution in original post

3 REPLIES 3
Expiscornovus
Dual Super User
Dual Super User

Hi @Craig_Cowley,

 

Just to double check. Is the name which is entered in the form also the name of the person submitting the form?

Hi @Expiscornovus 

No the person submitting the form is different the the name added.

 

I've now tried submitting the form with harry.newbie format and it seems to work with the O365 search for user. I've tested with my details and am about to test with a colleague. It does however rely on the person using the correct format, but I've added a note to the form question.

 

Form works.png

Unless there is another better way of doing this?

 

Thanks for the response

 

Craig

Expiscornovus
Dual Super User
Dual Super User

Hi @Craig_Cowley,

 

I think this approach already should work well.

 

Only improvement I would have would be to set the Top field to a value of 1 in your Search for users (V2) action. This will prevent the flow sending e-mails to multiple people.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Users online (2,030)