cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JosephW
Regular Visitor

Help with Forms to List to Send Email to Grab attachment add Attachment to Sharepoint list

Essentially what we are trying to do is to have people outside our organization fill out a form and upload a photo. But since Forms doesn't allow outside people upload photos, which would solve all our problems, I was trying to create a Power Automate Flow.

 

Here's the setup I've made so far:  Microsoft Forms > Create a SP List Item : New Flow - Send an Email after a new Forms Response > Ask for reply with attachment < I am stuck after this. I don't know how to get that attachment and add it to the already made list item.

 

I can easily create a new Microsoft (Sharepoint) List item from a form. That's simple. We then send out an automated email asking for them to reply with a photo. But I don't know how to connect that reply email that has an attachment to the corresponding sharepoint list item. 

 

I've added the Forms ID number to the subject line of the email, but I don't know how to connect that with an item on Sharepoint. Help!

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @JosephW 

I set up two Flow, you can take a try refer to screenshots below to see if it helps.

The first flow:

When the new response is submitted, flow is triggered, >Create a new item>Send an email, and the ID of the new item is written in the email subject.

vLilyWmsft_11-1634093457329.png

Please keep your email subject with a fixed content.

Such as:'Please add photos:'

vLilyWmsft_12-1634093484590.png

The second flow:

vLilyWmsft_13-1634093561475.png

Expression:last(split(triggerOutputs()?['body/subject'],':'))

(This step is to get the ID in the subject of the email )

vLilyWmsft_2-1634091942823.png

Get items and filter out the Item created before.

vLilyWmsft_3-1634092029819.png

Because Flow will automatically recognize the image in the signature and the image in the email body as attachments and name them starting with 'image0'

In order to add only the pictures attached to the email, so add a condition.

vLilyWmsft_4-1634092296441.png

vLilyWmsft_5-1634092744003.png

Save and test the Flow.

When a new response is submitted.

vLilyWmsft_6-1634092894880.png

First, an item without attachments will be created

vLilyWmsft_8-1634092968247.png

When I receive an email with 'Please add photos' in the subject.

vLilyWmsft_14-1634093654829.png

The email attachment will be added to the item.

vLilyWmsft_9-1634093218809.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
Anonymous
Not applicable

Hello,

 

Have you considered combining the two flows into a single flow? If you do so, you will be able to reference the SharePoint list item you created in a subsequent step (i.e., adding the file you receive back to the row id of the SharePoint item you created). I think that might solve the issue.

JosephW
Regular Visitor

It's funny you say that because that's what I was thinking about doing. But when I combine them, I'm still not sure how to get someone to upload a photo, either by email or if I get them to upload to a OneDrive folder, and then take that attachment and add it to the proper list item that was created. That's the hard part so far.

Hi @JosephW 

I set up two Flow, you can take a try refer to screenshots below to see if it helps.

The first flow:

When the new response is submitted, flow is triggered, >Create a new item>Send an email, and the ID of the new item is written in the email subject.

vLilyWmsft_11-1634093457329.png

Please keep your email subject with a fixed content.

Such as:'Please add photos:'

vLilyWmsft_12-1634093484590.png

The second flow:

vLilyWmsft_13-1634093561475.png

Expression:last(split(triggerOutputs()?['body/subject'],':'))

(This step is to get the ID in the subject of the email )

vLilyWmsft_2-1634091942823.png

Get items and filter out the Item created before.

vLilyWmsft_3-1634092029819.png

Because Flow will automatically recognize the image in the signature and the image in the email body as attachments and name them starting with 'image0'

In order to add only the pictures attached to the email, so add a condition.

vLilyWmsft_4-1634092296441.png

vLilyWmsft_5-1634092744003.png

Save and test the Flow.

When a new response is submitted.

vLilyWmsft_6-1634092894880.png

First, an item without attachments will be created

vLilyWmsft_8-1634092968247.png

When I receive an email with 'Please add photos' in the subject.

vLilyWmsft_14-1634093654829.png

The email attachment will be added to the item.

vLilyWmsft_9-1634093218809.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.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (4,616)