web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Attachment and Screens...
Power Automate
Unanswered

Attachment and Screenshots from Microsoft Teams in Planner

(0) ShareShare
ReportReport
Posted on by 20

Within a Microsoft Form, I have a question to upload and attachment. This same question was then added to the description of a planner task however when I view the description within the task, it is a broken link. The only way I can find the attachment was via One Drive > Apps > Microsoft Forms > Team Channel > Attachment Question 

Categories:
I have the same question (0)
  • Verified answer
    v-LilyW-msft Profile Picture
    on at

    Hi @User25 

    Do you want to attach files from Microsoft Forms into a Planner Task?

    I set up a Flow and can attach files from Microsoft Forms into a Planner Task.

    You can refer to:

    This is my test From

    vLilyWmsft_6-1629438635837.png

    Flow in details

    vLilyWmsft_0-1629438322287.png

    vLilyWmsft_1-1629438340612.png

    vLilyWmsft_2-1629438388817.png
    The schema used in the Parse JSON:
    {
        "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"
            ]
        }
    }
    vLilyWmsft_3-1629438474338.png
    vLilyWmsft_5-1629438568479.png
    When I submit a Form with files like this:
    vLilyWmsft_7-1629438665457.png

     

    The files will be added into the task.

    vLilyWmsft_8-1629438860028.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.

  • User25 Profile Picture
    20 on at

    Hi, 

     

    How can this JSON be tweaked in instances where there are no attachments uploaded? There are cases in which attachments are optional which leads to the flow failing.

  • v-LilyW-msft Profile Picture
    on at

    Hi @User25 

    You can add a judgment condition, if the uploaded file is not empty, create a task and update the task, if it is empty, just create a task.

    vLilyWmsft_0-1629856958406.png

    Best Regards.

     

  • User25 Profile Picture
    20 on at

    Hi, 

     

    If I add this to my flow, it will get significantly larger due to how I set up my flow. 

     

    For some background, the Microsoft Form is used to break out different request types. Each request type has its own bucket ID within Planner. My current flow is :

     

    When a new response is submitted -> Get Response Details -> Initialize variable -> Parse JSON -> Apply to each 

    -> Append to array variable -> Condition for request type 1 -> If yes Create a task -> Update task details -> If no -> Condition for request type 2 -> If yes Create a task -> Update task details 

     

    Is there a dynamic expression I can use so that it can determine the bucket ID instead of me breaking each request type out to its own bucket id?

  • User25 Profile Picture
    20 on at

    Thank you for your help.

     

    It looks like it did work for my flow. However I have a question about the attachment. It appears that the attachment within a create task is named as "file name_user." Is there any way I can extract the user component from the attachment name or possibly match that back to the email associated with that user?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard