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 / 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
Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    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
    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

  • v-yetonggu-msft Profile Picture
    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

  • v-yetonggu-msft Profile Picture
    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
    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

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard