I'm trying to create a flow for when an email appears in a shared inbox. I want a Planner task to be created and all attachments added to the task.
I can get the email on the Planner, but I can't get the attachments to the task. I found some walkthroughs but they refer to a dynamic called "link to item" that no longer exists.
Other walkthroughs seem to center around sending an email afterwards, but I'm not looking for that.
How do I add attachments (perhaps several, perhaps none) to the Planner task?
Solved! Go to Solution.
According to your description, you want to add email attachments to Planner task.
You can create a folder in Sharepoint to save email attachments, and then create a file share link through the ‘Create sharing link for a file or folder action’, and then update the file name and file link to the task.
I set up a flow, you can take a try with the following screenshots.
Complete Flow:
Save and test the Flow.
When shared mailbox receive an email like below:
A new task will be created with attachments.
Hope the content above may help you.
Best Regards
If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.
According to your description, you want to add email attachments to Planner task.
You can create a folder in Sharepoint to save email attachments, and then create a file share link through the ‘Create sharing link for a file or folder action’, and then update the file name and file link to the task.
I set up a flow, you can take a try with the following screenshots.
Complete Flow:
Save and test the Flow.
When shared mailbox receive an email like below:
A new task will be created with attachments.
Hope the content above may help you.
Best Regards
If my reply helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you! This is what I needed!
If you could keep helping, I tried to add a condition where it checks if the task has already been created first, and then only updates the task id. But something went terribly wrong and it kept making a task over and over and over again until I turned it off.
I have an idea where it goes wrong, but can't quite fix it.
If your Task title is unique, you can try the following:
If there is a value in the Filter query, it means that there is already a Task whose title is equal to Subject, just need to update it, otherwise create a new Task based on the subject of the email.
Best Regards
I'm still getting the same duplicating task problem
The judgment condition in Condition action should select 'is not equal to', and the left side should write 0.
Best Regards
Hi helpwithautomat,
I had a similar requirement recently and I decided to tackle it a bit differently. I decided to forward emails or post to a Teams channel and subsequently run a Flow to create a task with the email body and attachments. Here's what I came up with:
Add Attachments to Planner from Teams Channel Posts
Hope this helps.