web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Attach a file from Pow...
Power Automate
Unanswered

Attach a file from PowerApps and send it to PowerAutomate - PowerApps V2 File input

(0) ShareShare
ReportReport
Posted on by 25

Hi All,

 

I have a scenario and seeks your guideline.

 

I am attaching a file ( an excel template or a csv ) using form attachment control in PowerApps and then I want to send this file to PowerAutomate to retrieve the content from the excel template (table data) and get it back to PowerApps as a Collection.

 

I am using PowerApps v2 and input control is File.

 

Can anyone help with the syntax or method to be used for PowerApps V2 File input control

 

 

 

 

Categories:
I have the same question (0)
  • aido Profile Picture
    26 on at

    You can use the following steps to retrieve the content of an attached excel file in PowerApps and save it as a collection:

    1. To attach the excel file, use the "Form attachment control" in PowerApps.
    2. Create a flow in Power Automate that uses the "Create file" action in OneDrive for Business to store the attached file in the cloud.
    3. To retrieve the data from the excel file, use the "Get table data" action in Power Automate. This action requires the "Excel Online (Business)" connector to be installed.
    4. Using the "Compose" action, save the retrieved data in a variable.
    5. To convert the data stored in the variable into a collection, use the "Parse JSON" action.
    6. Finally, return the collection to PowerApps by using the "Return" action.
    7. Use the "Collect" function in PowerApps to save the returned collection to a variable.

    Here is an example of the syntax available in Power Automate (JSON):

    {
     "records": [
     {
     "Column1": "Value1",
     "Column2": "Value2",
     "Column3": "Value3"
     },
     {
     "Column1": "Value4",
     "Column2": "Value5",
     "Column3": "Value6"
     }
     ]
    }

    To retrieve the collection in PowerApps, use the following code (CSS):

    Collect(MyCollection, [Column1], [Column2], [Column3])

    You can use the File input control's "Source" property to retrieve the contents of the file and send it to Power Automate for processing. The following is an example of syntax (MakeFile):

    Source: ThisItem.AttachmentFiles[0].Content

    Please keep in mind that the syntax above assumes you only have one attached file. If multiple files are attached, you must specify the index of the file you want to retrieve.

     

    Here are the URLs to the documentation for Microsoft PowerApps and Power Automate:

    1. Microsoft PowerApps can be found at https://docs.microsoft.com/en-us/powerapps/.
    2. Power Automate from Microsoft: https://docs.microsoft.com/en-us/power-automate/

    The PowerApps and Power Automate documentation contains detailed information on the Form attachment control, the File input control, and the Collect function.

     

  • bijoumon Profile Picture
    25 on at

    @aido , Thank You for the response.  Will revert you after working on the solution.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 378

#2
Valantis Profile Picture

Valantis 329

#3
David_MA Profile Picture

David_MA 283 Super User 2026 Season 1

Last 30 days Overall leaderboard