cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thilegia
New Member

Check the submitted data from the form and send the email with attachment

Hi everybody. Thank you for your interest in my question.
My problem is:
- I have a form that fills in the user's phone number and email
- When the user submits the form, the system will check if the phone number is in the data list (already available).
-->If yes: send an email to the user's email address with an attachment with the name and phone number of the same person.
--> If not: send rejection email.

Looking forward to hearing from you.

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @thilegia 

Has your problem been solved?

Where is the file you want to send emails stored?

Assume the file to be sent is the attachment of the list item.

I set up a simple flow, you can refer to the following screenshots to see if it helps.

This is my test sharepoint list.

vLilyWmsft_0-1631509857714.png

This is my test Form

vLilyWmsft_6-1631510892939.png

Flow in details:

vLilyWmsft_17-1631512796832.png

vLilyWmsft_11-1631512165790.png

Note: You can find column internal name via List settings -> Click on the column name -> It’s at the end of the URL on the Edit column page, after ‘Field=’.

vLilyWmsft_12-1631512200086.png

Expression:length(outputs('Get_items')?['body/value'])

vLilyWmsft_13-1631512274287.png

vLilyWmsft_14-1631512418309.png

vLilyWmsft_4-1631510755778.png

vLilyWmsft_10-1631511441845.png

When a new form is submitted with the phone number in list, the user will receive an email with attachment.

vLilyWmsft_15-1631512475967.pngvLilyWmsft_9-1631511227649.png

If the phone number in the submitted form does not exist in the list,the user will receive an another email

vLilyWmsft_16-1631512574503.png

Hope the content above may help you.

Best Regards

If my solution helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
DAllen365
Resolver III
Resolver III

@thilegia Are you built a flow that you are having an issue, or are you looking for direction/advice on how to build a flow to do what you outlined?  Is the form a Microsoft Form, or a SharePoint list form or PowerApp or something else?  


----------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

@DAllen365 yes, i have the form, but i know what tools, or functions or functions of the flow that can help me to do the above automated process

Hi @thilegia 

Has your problem been solved?

Where is the file you want to send emails stored?

Assume the file to be sent is the attachment of the list item.

I set up a simple flow, you can refer to the following screenshots to see if it helps.

This is my test sharepoint list.

vLilyWmsft_0-1631509857714.png

This is my test Form

vLilyWmsft_6-1631510892939.png

Flow in details:

vLilyWmsft_17-1631512796832.png

vLilyWmsft_11-1631512165790.png

Note: You can find column internal name via List settings -> Click on the column name -> It’s at the end of the URL on the Edit column page, after ‘Field=’.

vLilyWmsft_12-1631512200086.png

Expression:length(outputs('Get_items')?['body/value'])

vLilyWmsft_13-1631512274287.png

vLilyWmsft_14-1631512418309.png

vLilyWmsft_4-1631510755778.png

vLilyWmsft_10-1631511441845.png

When a new form is submitted with the phone number in list, the user will receive an email with attachment.

vLilyWmsft_15-1631512475967.pngvLilyWmsft_9-1631511227649.png

If the phone number in the submitted form does not exist in the list,the user will receive an another email

vLilyWmsft_16-1631512574503.png

Hope the content above may help you.

Best Regards

If my solution 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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,529)