A common way to triage a shared inbox is to create Planner tasks for each email that comes in, using a Power Automate flow.
The method for doing that is straightforward because there is a Create a task step for Planner:
There is no option to add an attachment using the Create a task step so if the email has an attachment you need to add to your Planner task how do you do it?
Planner doesn't allow you to upload attachments to a task directly, you need to provide a URL for it, which means first storing it to SharePoint or OneDrive.
Now, if there is a single attachment this is quite simple to do in Power Automate once you know how. You can run an Apply to each loop using the Attachments from the trigger as the value, then use a Get Attachment and a Create file step inside the loop to save the file:
The Get Attachment step:
The Create file step:
Then, to add that URL to the Planner task, use an Update task details step which allows you to add attachments or checklists elements:
(This is not the same as an Update a task step which - somewhat confusingly - allows you to update other elements of the task but not attachments or checklists. No, I've got no idea why they're separate steps either. Just make sure you use the Update task details step for this.)
You need to provide a name for the attachment (the Reference Alias, which you can take from the name of the attachment if you want), a URL for the attachment (the References Resources link, which is a link to the file you created in Create a file) and select a file type (from the Reference Type dropdown, which you can infer from the name of the attachment).
But what happens if there is more than one attachment?
The Update task details step allows you to add multiple attachments but that only works if you know how many there are.
If you don't know how many attachments might be in an email, you need to create an array of attachments and add that array to the task as one item instead.
Adding an array of attachments
The good news is that we already have most of what we need for this solution. We just need to create an array variable at the top of the flow:
And then add the attachments to that variable in the Apply to each loop:
As usual with arrays we need to append the attachment in JSON notation. That takes the form:
{"alias": "[attachment name]"
"resourceLink": "[URL]"
}
We will use the Name of the attachment for the alias and the Path of the file from the Create file step for the resourceLink in our Append step:
Every loop of the Apply to each loop will add an additional attachment to the array.
After the loop has finished, we create the Planner task as before and then in the Update task details step we click the Switch to input entire array option:
And use the Planner Attachments variable as the value:
Now your Planner task will have multiple attachments, regardless of whether the email has 1, 3, 5, or more attachments.
Note that at the time of writing the Planner limits state that the "Maximum references on a task" - i.e. attachments, for the purposes of this discussion - is 15, so if you try to add more than that you'll get an error of some sort.
If that might be a realistic problem you'll need to implement a different strategy such as storing files in a SharePoint folder and referencing that folder, or alerting you to deal with the problem, or whatever solution is right for you.