cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
calrodlbt
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
v-bacao-msft
Community Support
Community Support

 

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
calrodlbt
Frequent Visitor

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!

 

v-bacao-msft
Community Support
Community Support

 

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,549)