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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adding attachments fro...
Power Automate
Answered

Adding attachments from Microsoft Form to Task Planner

(0) ShareShare
ReportReport
Posted on by 28

Hey all

 

I was wondering if you could help me - I have built a flow which collects user question data and uploaded documents into a task in planner. However, I can't add the uploaded file to task for the life of me - I've gone through every possible walkthrough on forums that I've found and nothing seems to work - can anyone tell me where I'm going wrong please?

 

Parse JSON is as follows:

 

{
"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"
]
}
}
 
looking at the failed run(s), it is failing on the 'add attachment' step, which I've coded the 'name' to be as follows:
 
item()?['name']
 
I've also coded the 'update task details' to include the following in the references section (screenshot 3)
 
Any help on this would be great!
 
Thanks
Screenshot 2024-06-06 at 07.45.12.png
Screenshot 2024-06-06 at 07.41.23.png
Screenshot 2024-06-06 at 07.43.53.png
Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Sphynx2120 ,

    Please check this test:

    vyetonggumsft_0-1717657841968.png

    vyetonggumsft_2-1717657930169.png

    My Task Planner:

    vyetonggumsft_3-1717658041407.png

    Best Regards,

    Sunshine Gu

     

     

  • Sphynx2120 Profile Picture
    28 on at

    Hey

     

    Thanks for your reply, I am struggling to find the terms 'name' and 'link' in the update task details > references section - the only options I have under the Parse JSON section in dynamic expressions are as follows:

     

    Body name

    Body link

    Body id

    Body type

    Body size

    Body referenceId

    Body driveId

    Body status

    Body uploadSessionUrl

    Body item

    Body

     

    Can you tell me which ones to use please? I've used body name and body link in my test and it's not worked 😞

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Sphynx2120 ,

    Please show me a screenshot of your Update task details Reference parameters.

     

    Best Regards,

    Sunshine Gu

  • Sphynx2120 Profile Picture
    28 on at

    Hey

     

    Please find attached screenshots of parameters in update task details

    Screenshot 2024-06-06 at 08.43.13.png
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Sphynx2120 ï¼Œ

    Your configuration is fine, what is the error with flow?

     

    Best Regards,

    Sunshine Gu

  • Sphynx2120 Profile Picture
    28 on at

    Hey

     

    I've found the error and I've fixed it. However, I have encountered a further problem 😞

     

    I need to add in a condition for when there is no upload (it is not a mandatory field) - can you tell me how to make this work in the condition connector please? 

  • Sphynx2120 Profile Picture
    28 on at

    Please find attached screenshots of condition and coding

    Screenshot 2024-06-06 at 10.02.12.png
    Screenshot 2024-06-06 at 10.02.23.png
  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Sphynx2120 ,

    When the flow is triggered, we create a task first, and then determine whether to upload the file, if the file is uploaded, we will update the task details, and if it is not uploaded, we will not perform any operation.

    Please check this test:

    vyetonggumsft_0-1717665096982.png

    vyetonggumsft_2-1717665330096.png

    empty(Upload File Dynamic Content)

    Best Regards,

    Sunshine Gu

  • Sphynx2120 Profile Picture
    28 on at

    Hey

     

    Thanks for your help.

     

    I'm a bit confused here - I require the task to be made if the customer has or hasn't uploaded any files, how would I do that?

     

    I'm assuming you create a task under the false column, and then update task details? But what needs to go in the condition?

  • v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @Sphynx2120 ï¼Œ

    So what do you want to update the task in the case of false?

     

    Best Regards,

    Sunshine Gu

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard