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

Initialize variable with a property of a dynamic content from MS Forms File Upload

I have a MS form with a file upload question. I am creating a flow that when a new response is submitted, I would like to grab the name of that uploaded file and the link to the file of where i was uploaded(on my OneDrive). The properties of the file would be initialized or set as variable such as var_filename or var_filelocation.

 

I will then use these variable for various uses such as sending the filenames to the team via email and adding it to a spreadsheet. So how would I go about grabbing those properties of the file upload submission?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Initialize variable with a property of a dynamic content from MS Forms File Upload

Hi @JoeCOP ,

 

How many files would be uploaded in the response?

Please refer to screenshot below to create the flow to get the file name and the link:

1.png

The schema for the Parse JSON as below:

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

 

 The flow would run successfully as below:

2.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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
Community Support
Community Support

Re: Initialize variable with a property of a dynamic content from MS Forms File Upload

Hi @JoeCOP ,

 

How many files would be uploaded in the response?

Please refer to screenshot below to create the flow to get the file name and the link:

1.png

The schema for the Parse JSON as below:

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

 

 The flow would run successfully as below:

2.png

 

Best regards,

Alice       

 

Community Support Team _ Alice Zhang
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

JoeCOP
Regular Visitor

Re: Initialize variable with a property of a dynamic content from MS Forms File Upload

@v-alzhan-msft Thank you for the help. After some digging around I found a similar solution to your, although yours is more cleaner.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,114)