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 / Power Automate: Add at...
Power Automate
Unanswered

Power Automate: Add attachments to planner task from a Form submission

(0) ShareShare
ReportReport
Posted on by 4

Hi!

I have been searching and utilizing all support help to try and solve my attachment issue.

I cannot figure out why my attachments are not feeding into my tasks. The flows succeed, just without the attachments.

 

Is there a place that shows you step by step how to create a flow that includes the attachment on a task?

Many tutorials don't include what code is placed into the parseJSON areas, or it's missing a differnt type of code. I would like one that shows you every single step with copy and paste options.

 

Thank you

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

    Hi @EverAg ï¼Œ

    I'm afraid you can't add attachments directly to Planner, but you can add a link to attachments, please see the following test:

    vyetonggumsft_2-1715649732081.png

    {
     "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"
     ]
     }
    }

    vyetonggumsft_4-1715649797312.png

    My Planner Task:

    vyetonggumsft_6-1715649853381.png

    Best Regards,

    Sunshine Gu

  • EverAg Profile Picture
    4 on at

    I really appreciate you quick response, thank you!
    Unfortunately it is giving me an error when I made those changes.

    This might be why: sometimes people will upload to the form, and other times they wont.. would that make this flow change?

    After I added the changes you recommended, I am getting this error during testing:

    Cannot set child value ' !' on Newtonsoft.Json.Linq.JValue:'https://dairyddc-my.sharepoint.com/personal/erika_young_ever_ag/Documents/Apps/Microsoft%20Forms/Advertisement%20Intake%20Form%20%20(Copy)/Related%20Artwork/Screenshot%202024-05-10%20at%208.52.38%E2%80%AFAM_Erika%20Young%201.png'

     

    I can see the name of the file that was uploaded in that form in this error, so Im not quite sure where I'm missing the mark.

     

    Ive attached screenshots of the errors.

    Screenshot 2024-05-14 at 07-48-10 Run History Power Automate.png
    Screenshot 2024-05-14 at 07-47-57 Run History Power Automate.png
    Screenshot 2024-05-14 at 07-48-18 Run History Power Automate.png
  • v-yetonggu-msft Profile Picture
    on at

    Hi @EverAg ï¼Œ

    So your question is whether it sometimes uploads a file and sometimes it doesn't, and when it doesn't upload a file, does Flow report an error?

    If so,we first determine whether the question of whether to upload files is empty.

    If it is not empty, go to the yes branch, parse the uploaded file, create tasks and update tasks, add the name and link of the file.

    If it is empty, go to the no branch and only create tasks. and update tasks

    vyetonggumsft_3-1715841893035.png

    vyetonggumsft_2-1715841682101.png

    Best Regards,

    Sunshine Gu

  • EverAg Profile Picture
    4 on at

    In the Update Task details:
    Reference Alias -whats the value that I put in for name same for the Reference Resource: link?

  • v-yetonggu-msft Profile Picture
    on at

    Hi @EverAg ï¼Œ

    The value of this link is different for everyone, my link is not the same as your link, even if it is given to you, you can't use it, you just need to parse Json and then use the dynamic content name.

     

    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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard