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!
Solved! Go to Solution.
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.
Please keep your email subject with a fixed content.
Such as:'Please add photos:'
The second flow:
Expression:last(split(triggerOutputs()?['body/subject'],':'))
(This step is to get the ID in the subject of the email )
Get items and filter out the Item created before.
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.
Save and test the Flow.
When a new response is submitted.
First, an item without attachments will be created
When I receive an email with 'Please add photos' in the subject.
The email attachment will be added to the item.
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.
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.
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.
Please keep your email subject with a fixed content.
Such as:'Please add photos:'
The second flow:
Expression:last(split(triggerOutputs()?['body/subject'],':'))
(This step is to get the ID in the subject of the email )
Get items and filter out the Item created before.
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.
Save and test the Flow.
When a new response is submitted.
First, an item without attachments will be created
When I receive an email with 'Please add photos' in the subject.
The email attachment will be added to the item.
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.
User | Count |
---|---|
102 | |
40 | |
29 | |
23 | |
16 |
User | Count |
---|---|
132 | |
52 | |
50 | |
36 | |
26 |