Hi,
I hope you are all safe at this time. I have a support form that logs an issue, username, phone number etc. and allows for multiple files. On submission of the form, I would like to
I have found that the "Apply to Each" doesn't show any of the previous values that I need when trying to read the attachments. Any help gratefully received and apologies for the numpty question.
Solved! Go to Solution.
I add the same need
Here is the process I used
- Get Response Details
- Create Sharepoint Item in a list
- Analyse JSON
- Apply to each
Get the content of the file
Add an attachments to a sharepoint items
- Get the sharepoint item
- Apply to each
Update Task
I just had to create a list in Sharepoint to handle the documents
the main idea is that the document attached in the form is store in sharepoint to get a shareable link and not a personal onedrive link...
Here the JSON Format I use
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
I already gave my solution 😉
Thanks to you all @BenjaminJarry , @efialttes and @v-bacao-msft and apologies for the delay due to work.
I did get it working from your assistance apart from when there were no files uploaded so I needed to check if they exist before running this process otherwise it would crash.
So far we have had 200+ successful submissions and improved our response to COVID requests and saved after-hours staff heaps of effort so a huge thank you to you all. Attached is the section of the flow concerning the files section.
Overview of file section - showing logic for the form field "Upload your files"
Part one of the conditional
Part two of the conditional -looping through the multiple attachments.
Hi!
Can you share a screenshot from your current flow design? Just to understand the context you are using 'Apply to each'
This post explains how to add attachments to a Planner Task with Power Automate
The scenario covered in the post is based on attachments received via email, the design uses Sharepoint to store them, get a link and store the link in Planner Task. Please note there is a limit in nr of Attached links per Planner Task, max 9.
The way to obtain Planner Task link, explained here:
https://www.aerieconsulting.com/blog/link-to-a-planner-task-in-microsoft-flow
https://tasks.office.com/{tenantenvironment}/en-US/Home/Task/{TaskId}
Thanx!
Proud to be a Flownaut!
I add the same need
Here is the process I used
- Get Response Details
- Create Sharepoint Item in a list
- Analyse JSON
- Apply to each
Get the content of the file
Add an attachments to a sharepoint items
- Get the sharepoint item
- Apply to each
Update Task
I just had to create a list in Sharepoint to handle the documents
the main idea is that the document attached in the form is store in sharepoint to get a shareable link and not a personal onedrive link...
Here the JSON Format I use
{
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"link": {
"type": "string"
},
"id": {
"type": "string"
},
"type": {},
"size": {
"type": "integer"
},
"referenceId": {
"type": "string"
},
"driveId": {
"type": "string"
},
"status": {
"type": "integer"
},
"uploadSessionUrl": {}
},
"required": [
"name",
"link",
"id",
"type",
"size",
"referenceId",
"driveId",
"status",
"uploadSessionUrl"
]
}
}
Hi @skillsy / @BenjaminJarry ,
If the form is a group form, please check this similar thread and use the method in it to get the details of the file:
Please take a try and feel free to let us know if you have any other questions.
Best Regards,
I know it's an old thread, but... did you finally overcome your challenge?
Thanx!
Proud to be a Flownaut!
I already gave my solution 😉
Thanks to you all @BenjaminJarry , @efialttes and @v-bacao-msft and apologies for the delay due to work.
I did get it working from your assistance apart from when there were no files uploaded so I needed to check if they exist before running this process otherwise it would crash.
So far we have had 200+ successful submissions and improved our response to COVID requests and saved after-hours staff heaps of effort so a huge thank you to you all. Attached is the section of the flow concerning the files section.
Overview of file section - showing logic for the form field "Upload your files"
Part one of the conditional
Part two of the conditional -looping through the multiple attachments.
Hello guys, I have a similar question, but I didn't understand how @skillsy solved it, in my case I want to grab the form's attachment and play it in the attached field of the planner task but as I understand it I need to play it on a sharepoint list to get his link and put it in the correct task? sorry i haven't mastered the power automate yet but i wanted to do that. Would you know if it is possible for the form attachment to go to an item in the sharepoint and get this link and put it in the task in the planner?my flow
User | Count |
---|---|
94 | |
39 | |
24 | |
21 | |
16 |
User | Count |
---|---|
128 | |
49 | |
48 | |
31 | |
24 |