cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PM00n
New Member

I would like to upload more than one file at a time to Flow

Hi there it seems you can only upload one file at a time to a staff member when assigning him work using Flow.  Have you developed a way for multiple uploads to a

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @PM00n :

Do you want to upload more than one file at a time to Flow?

If so,I've made a demo(Upload multiple files at once and save them into the SP library) for your reference:

vbofengmsft_0-1626914823329.png

 

1\Add a Attachment control(AttachmentControl)
2\Add Timer control(Timer2)

Duration

 

3000 /*loop in 3s*/

 

OnSelect

 

Clear(TheFiles);Set(TheCount,1)

 

OnTimerEnd

 

Set(TheRecord,Last(FirstN(AttachmentControl.Attachments,TheCount)));Set(TheURL,TheRecord.Value);Collect(TheFiles,{FileName:TheRecord.Name,FileContent:Substitute(JSON(Image1.Image,JSONFormat.IncludeBinaryData),"""","")});Set(TheCount,TheCount+1);Set(TheFilesJson,JSON(TheFiles,JSONFormat.IncludeBinaryData))

 

Repeat

 

TheCount<CountRows(AttachmentControl.Attachments)

 

3\Add an image control(Image1)

Image

 

TheURL

 

4\Create a flow(PowerAppV2 -> Compose)

vbofengmsft_2-1626914823345.png

 

The Schema

 

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "FileContent": {
                "type": "string"
            },
            "FileName": {
                "type": "string"
            }
        },
        "required": [
            "FileContent",
            "FileName"
        ]
    }
}

 

5\Go back to the app and add the flow into the app

6\Add a button(Button5) and set it's Onselect property:

 

'PowerAppV2->Compose'.Run(TheFilesJson)

 

Select the timer button and then wait for it to end automatically.Finally select the Button5.

vbofengmsft_3-1626914823170.png

 

vbofengmsft_4-1626914823365.png

I think this link will help you a lot:

Creating multiple file attachment without edit forms

Getting pics to SharePoint from PowerApps is getting easier…

Best Regards,

Bof

View solution in original post

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @PM00n :

Do you want to upload more than one file at a time to Flow?

If so,I've made a demo(Upload multiple files at once and save them into the SP library) for your reference:

vbofengmsft_0-1626914823329.png

 

1\Add a Attachment control(AttachmentControl)
2\Add Timer control(Timer2)

Duration

 

3000 /*loop in 3s*/

 

OnSelect

 

Clear(TheFiles);Set(TheCount,1)

 

OnTimerEnd

 

Set(TheRecord,Last(FirstN(AttachmentControl.Attachments,TheCount)));Set(TheURL,TheRecord.Value);Collect(TheFiles,{FileName:TheRecord.Name,FileContent:Substitute(JSON(Image1.Image,JSONFormat.IncludeBinaryData),"""","")});Set(TheCount,TheCount+1);Set(TheFilesJson,JSON(TheFiles,JSONFormat.IncludeBinaryData))

 

Repeat

 

TheCount<CountRows(AttachmentControl.Attachments)

 

3\Add an image control(Image1)

Image

 

TheURL

 

4\Create a flow(PowerAppV2 -> Compose)

vbofengmsft_2-1626914823345.png

 

The Schema

 

{
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "FileContent": {
                "type": "string"
            },
            "FileName": {
                "type": "string"
            }
        },
        "required": [
            "FileContent",
            "FileName"
        ]
    }
}

 

5\Go back to the app and add the flow into the app

6\Add a button(Button5) and set it's Onselect property:

 

'PowerAppV2->Compose'.Run(TheFilesJson)

 

Select the timer button and then wait for it to end automatically.Finally select the Button5.

vbofengmsft_3-1626914823170.png

 

vbofengmsft_4-1626914823365.png

I think this link will help you a lot:

Creating multiple file attachment without edit forms

Getting pics to SharePoint from PowerApps is getting easier…

Best Regards,

Bof

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,807)