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 Apps / Import Records from Ca...
Power Apps
Answered

Import Records from Canvas App

(0) ShareShare
ReportReport
Posted on by 2,194 Moderator

Hello Everyone! 
Hope you're doing well. 

I just got kinda stuck with a recent requirement and wanted your opinions on this.

I have a canvas app. The client wants to add a feature to import records from canvas app using an excel file. Just like the button we have in Model-Driven App (Import from Excel). I know this is possible somehow using Power Automate as I once saw this in a past project. But unfortunately I didn't get a chance to take a good look at it.

 

If someone has done it can you kindly guide me with the proper approach. Any link to documentation or Video will also be very useful. Thanks in advance. 

Categories:
I have the same question (0)
  • Verified answer
    Shaheer Ahmad Profile Picture
    2,194 Moderator on at

    Found a close enough solution:

    1. Design the UI: Create a button or a control in your canvas app interface to trigger the import process.

    2. Configure Power Automate: Use Power Automate (previously known as Microsoft Flow) to handle the import process. Power Automate allows you to create automated workflows that can perform various tasks, including importing data from an Excel file.

    3. Create a new Power Automate flow: In Power Automate, create a new flow. You can start with a blank flow or use a template that suits your requirements.

    4. Configure the trigger: Set the trigger for the flow to activate when the button in your canvas app is clicked. For example, you can use the Power Apps trigger to initiate the flow.

    5. Add Excel actions: Within the flow, add actions to interact with the Excel file. You can use the "Excel Online (Business)" connector or the "Excel Online (OneDrive)" connector to perform operations on the Excel file.

    6. Define import logic: Specify the logic to read the data from the Excel file. You can use actions like "List rows present in a table" or "Get rows" to retrieve the data from the Excel file.

    7. Process imported data: Once you have the data from the Excel file, you can perform any necessary transformations or validations on the data within the flow. You can use actions like "Apply to each" to iterate through the imported data and perform actions on each record.

    8. Save records to the desired data source: Within the flow, use actions or connectors to save the imported data into the desired data source, such as a SharePoint list, a SQL database, or any other supported data destination.

    9. Handle errors and provide feedback: Implement error handling within the flow to handle any issues that may arise during the import process. You can use actions like "Compose" or "Send an email" to send notifications or provide feedback to the user in case of errors or successful imports.

    10. Test and deploy: Test the flow by running it manually or by triggering it from your canvas app. Once you are satisfied with the results, deploy the solution to your production environment.

    It's important to note that the exact configuration and steps may vary depending on the specifics of your app and the connectors you use. However, this general approach using Power Automate should help you achieve the desired import functionality in your canvas app.

     

    P.S.

    ChatGPT gave me this approach which triggered the full approach in my mind. I watched the "upload file to sharepoint from canvas app" video from Reza Dorrani.

    Uploaded the file from canvas app to sharepoint (Temporarily) then used list rows and apply to each action to create records... this works but still it is not dynamic. I want it to be dynamic so that it can auto map the fields. Is it even possible?

    Regards,

    Shaheer Ahmad

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard