Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Upload Excel file and update data in Data verse table

(6) ShareShare
ReportReport
Posted on by 37
We have a table in data verse where users can view details in Canvas App and update comments and status for a single or multiple entry. Now there is requirement where user will place a file in network drive and when the user click on a button it should allow user to select and data should read and update in data verse to the respective records. Is there any possibility to do this via Power app?
  • Suggested answer
    Mansi Soni Profile Picture
    1,715 on at
    Upload Excel file and update data in Data verse table
    Hello, Yes, this is possible using Power Automate with Power Apps. You can create a Canvas App with a button that triggers a Power Automate flow. The flow will prompt the user to select a file from the network drive, read its contents, and update the respective Dataverse records. However, accessing a network drive directly from Power Apps isn't natively supported, so you may need an intermediate storage like OneDrive, SharePoint, or Azure Blob Storage to fetch and process the file.

    Hope this answer will help you!

    Regards,
    Mansi Soni

     
  • Ramesh Kumar Profile Picture
    3,298 on at
    Upload Excel file and update data in Data verse table
    I think you can create Power automate flow
     
    • Create a Power Automate flow that connects to the network drive using "File System" or "OneDrive" connector.

    • Set up actions to read the file and extract the necessary data.

    • Use "Apply to each" action to loop through the rows of the file.

    • Use the "Dataverse - Update a row" action to update the records with data from the file.
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    6,051 Super User 2025 Season 1 on at
    Upload Excel file and update data in Data verse table
    Hello SM-06021322-0,
     
    Yes, it's possible to achieve this functionality of reading data from a file on a network drive and updating corresponding Dataverse records from a Canvas App, but it requires a combination of techniques and considerations. Here's a breakdown of the approach and potential challenges:
     
    High-Level Approach:
    1. File Selection (Canvas App):
      • Use the Launch() function with a file picker dialog or a custom component to allow the user to select the file from the network drive.
    2. File Reading (Power Automate):
      • Trigger a Power Automate flow from the Canvas App, passing the file path or content.
      • Use Power Automate's file system connectors or custom connectors to read the file's content.  
    3. Data Parsing (Power Automate):
      • Parse the file's content (e.g., CSV, Excel, TXT) to extract the relevant data.  
    4. Dataverse Update (Power Automate):
      • Use the Dataverse connector in Power Automate to update the corresponding records in the Dataverse table.  
     
    Detailed Steps:
    1. Canvas App - File Selection:
    • File Picker (Limited):
      • The built-in file picker in Canvas Apps is designed for local files, not network drives directly.
      • You might need to explore browser-specific file picker options or create a custom component using Power Apps component framework (PCF).
    • Launch Function (Workaround):
      • You could use the Launch() function to open a file explorer window, but this won't directly return the file content to the app.
      • The user would need to manually copy the file path and paste it into a text input in the Canvas App.
    • Custom Component (Recommended):
      • For a more seamless experience, consider creating a custom component using PCF.
      • This component could use JavaScript to interact with the browser's file system API and allow the user to select files from a network drive.
      • This is the most complex but most flexible solution.
    2. Power Automate - File Reading:
    • Trigger from Canvas App:
      • Use the "Power Apps" trigger in Power Automate to initiate the flow from the Canvas App.  
    • File System Connectors (If Applicable):
      • If the network drive is accessible through a supported file system connector (e.g., SharePoint, OneDrive), you can use that connector to read the file.
      • If not, you might need to use a custom connector or custom code.
    • Custom Connector (Advanced):
      • You can create a custom connector to access the network drive if it's accessible through a REST API.  
    • Custom Code (Advanced):
      • If the network drive is not accessible through a connector, you might need to use custom code (e.g., Azure Functions) to read the file.
    3. Power Automate - Data Parsing:
    • Parse CSV/Excel/Text:
      • Use Power Automate's built-in actions to parse the file content based on its format (CSV, Excel, TXT).
    • JSON Parsing (If Applicable):
      • If the file contains JSON data, use the "Parse JSON" action.  
    4. Power Automate - Dataverse Update:
    • Dataverse Connector:
      • Use the Dataverse connector's "Update a row" action to update the corresponding records in the Dataverse table.  
    • Matching Records:
      • You'll need to determine how to match the data from the file to the records in Dataverse (e.g., based on a unique ID or other criteria).
     
    Challenges and Considerations:
    • Network Drive Accessibility:
      • The most significant challenge is ensuring that the network drive is accessible from Power Automate.
      • This might require configuring network gateways, custom connectors, or custom code.
    • File Format:
      • The file format will determine how you parse the data in Power Automate.
    • Security:
      • Consider the security implications of accessing files on a network drive.
    • Performance:
      • Reading and processing large files can impact performance.
    • Error Handling:
      • Implement robust error handling to handle potential issues with file access, parsing, or Dataverse updates.
     
    Important Notes:
    • Browser Security: Browsers have security restrictions that prevent direct access to local or network files.  
    • Power Automate Limitations: Power Automate's file system connectors have limitations, especially when dealing with network drives.
     
    Key Recommendations:
    • Custom Component (PCF): If possible, create a custom component for file selection.
    • Power Automate for Data Processing: Use Power Automate to read, parse, and update Dataverse data.
    • Careful Planning: Plan the data flow and error handling carefully.
     
    This is a complex scenario, but it is achievable with the correct design and implementation.
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • Suggested answer
    SatyamPrakash Profile Picture
    207 on at
    Upload Excel file and update data in Data verse table
    Direct access is not possible in Power Apps, but Power Automate with a File System connector is the ideal approach to achieve your requirement.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans