cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Post Files submitted in Forms to Task Card in Planner

I am trying to make a flow that will create and populate a task card in Planner from a Form. I have everything working, except for the images/text/word docs etc that are uploaded via forms.


I need it so that multiple requests could have different documents attached to them.

Right now pulling from the 'get response details' for the form flow (Ass. Files in this case) gives me a long string

 

"resourceLink": "[{\"name\":\"lr3lftaeoer5tw89djsl.jpg\",\"link\":\"https://lbtorg-my.sharepoint.com/personal/REDACTED/Documents/Apps/Microsoft%20Forms/Design%20Request%202/Question/lr3lftaeoer5tw89djsl.jpg\",\"id\":\"REDACTED\",\"type\":null,\"size\":532372,\"referenceId\":\"REDACTED\",\"driveId\":\"REDACTED\",\"status\":1,\"uploadSessionUrl\":null}]"}

 

(I changed some personal info, of course)

So there is clearly the name and the url, but they are stuck in one string. I tried finding a way to split them, but realized this may be an issue if multiple files are meant to be attached.

 

Has anyone found a solution for this? I know that what is going wrong is that update task details is not getting a clean name/url. I have been working on it for hours trying to work it out for myself, but I'm a novice and I've reached the point where I just have to ask as searching has failed me.

 

Addendum: this guide seemed to have something working, but it didn't seem to suit my use case very well.

 

Screen Shot 2020-07-02 at 7.24.52 PM.png

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Post Files submitted in Forms to Task Card in Planner

 

Hi @calrodlbt ,

 

Please refer to this thread and see if it helps:

Re: Form Responses in Flow - Power Platform Community

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Frequent Visitor

Re: Post Files submitted in Forms to Task Card in Planner

I figured it out:

 

Create Action: Parse JSON

Put your Content as the pull for where your files are being uploaded. And enter the following 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"
        ]
    }
}

 

 

Screen Shot 2020-07-02 at 8.18.52 PM.png

 

Then create an action "apply to each" and select "Body" from your JSON dynamic content into "Select an output from previous steps".

Add action "Update task details". Use Parse JSON name and link as shown in the screenshot.

 

Screen Shot 2020-07-02 at 8.25.11 PM.png

 

It works like a charm, only bug is that the images don't show up very well when display on card is toggled. But hey, small price to pay. Hope this helps someone!

 

Highlighted
Community Support
Community Support

Re: Post Files submitted in Forms to Task Card in Planner

 

Hi @calrodlbt ,

 

Please refer to this thread and see if it helps:

Re: Form Responses in Flow - Power Platform Community

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (4,182)