cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
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
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (7,652)