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 / Use same power app to ...
Power Apps
Unanswered

Use same power app to edit multiple excel sheets

(0) ShareShare
ReportReport
Posted on by 69

Hello!

I'm trying to make a power app that will allow me to edit an excel form that I will then use to create labels for items in an order using a mail merge. Each order is on its own spreadsheet, since that is how it comes off the software we use.  The user needs to add info like how many labels each item will need, and add memos if necessary for printing on the labels, etc. I plan to have scripts or macros set up to make each file set up identical so power apps can use them all - same tablename, column names, formating. 

I created an app using the create from Excel option in power apps and it is working perfectly! All the info can be added and edited!

Now, how can I use that same app on all the many orders will will be labeling, each with its own spreadsheet?  I plan to save them all in OneDrive. 

Do I have to create a new app for each excel file? Do my users have to be able to change the connection to the excel workbook with the particular order they are working with? Can the app let them navigate the folder in which all the excel files will be saved and let them pick the file they need to edit? Can I use power automate to trigger the app every time an excel file is added to the OneDrive folder?

This seems like it should be simple but I could use some help!!

Thanks for your help!!!

Categories:
  • mmollet Profile Picture
    3,187 on at

    The way I did this was by creating a template excel file that was setup how I want every one of them to be set up. Then I created a flow that is kicked off via a button in the Power App. This flow gets the data I want from sharepoint, combines it with data entered on the app and then sends it to flow. The flow then creates a new excel file based on the template and names it UserName + formatted current date/time and saves it to the folder i want in onedrive. This can be done as many times for whatever user I want to run it for.

     

    I use this for clock in/ clock out as well as tracking mileage. The flow even sends the excel sheet as an attachment to the accounting dept for billing purposes. One template saved as a new file for each user each time it runs. 

  • CTASS Profile Picture
    69 on at

    Interesting! So is the button the first thing the user does in the app? In my case the user would have to get the data from the excel file before she can edit it. What kind of data are you getting from sharepoint - a list?

  • mmollet Profile Picture
    3,187 on at

    Yeah so the user loads to this screen first. 

    Screenshot 2023-04-03 at 11.30.00 AM.png

     

    They can then choose what they want to do. Clock In, Clock Out, Add a mileage report, ETC. The admin screen is only visable to the accountants and admin and that is where the buttons for report generation are. Admin Screen is this

    Screenshot 2023-04-03 at 11.31.45 AM.pngScreenshot 2023-04-03 at 11.32.10 AM.png

    Can print reports for single user or all users for either Hours worked (at the bottom) or for driving and milage expenses by clicking the cars at the top right to get the dropdown menu. Super simple looking app but this combined with the 4 flows are saving the accounting team around 10 hours a week and have moved us away from using paper to clock in/out for around 25 employees. 

     

    Here is how the flow is set up: (For a single users travel expenses) 

    Screenshot 2023-04-03 at 11.35.08 AM.png

     

    Screenshot 2023-04-03 at 11.35.21 AM.png

     

    Screenshot 2023-04-03 at 11.35.30 AM.png

     

    I get the items from the SP list and filter them as I do. This gives me a list of entries for a specific user, between 2 dates, and that are unpaid.

    Next I get the excel template from SP (could be onedrive as well) and then create a new excel file based on that template.

    Apply to each loops throught the items returned by the get items call and uses compose to get only the columns I want in my excel file then add them to the table. The item in SP list is then marked as paid using the update item function so that next time it wont be billed.

    All of the purple steps below the apply to each are extra steps for an HTML table embedded in the body of the email to show which entries have attachments such a receipt images on them with a link to that item in the SP list so the accountant can easly access and view it.

    Then a 1 min delay to allow the file time to be opened, built, and closed.

    Then get the content of the file

    Attach the file to an email and send it to the user that started the flow. 

     

    Hope this helps! 🙂

  • CTASS Profile Picture
    69 on at

    I'm not sure if this will help me since I'm not trying to create an excel sheet, rather I'm trying to edit info already in a spreadsheet generated from our software. 

    Here is a sample of the spreadsheet that I got from the software and used macros/scripts to add columns for the info I need the user to add/edit:

    CTASS_0-1680542292243.png

    Here's the app I created using the "create from excel" option. It is very simple and does what I need it to do.

    CTASS_1-1680542379308.png 

    CTASS_2-1680542429817.png

    After the user fills out all the info, it saves back to the excel sheet and then I can mail merge it to create my labels. It is exactly what I need. 

    But now I'm done with this order and need to do the same thing with the next order - but it is on another excel workbook also saved in my onedrive. How can I use the same app on that spreadsheet?

     

     

  • mmollet Profile Picture
    3,187 on at

    Aaaah I see now. I have never done this before. There is a flow funciton that returns the files inside of a folder. If you could find a way to link that to a gallery then when it is selected it sets that as the data sourse for your gallery that is currently in your first screen maybe that would work. So:

     

    Gallery 1 on new page would be a list of your excel files. Select one and it would navigate to Gallery 2 page.

    Gallery 2 would be a list of all items inside the table in the excel sheet from the previous step.

    The rest of the app would work the same as it does now. 

     

    This is a tricky thing to do and im not sure how it would work. Might need someone with bigger guns that I have to tackle this issue 😕

  • CTASS Profile Picture
    69 on at

    Thanks for trying! Yes, that's exactly what I need to do. I know you can navigate to folders and see the files, I just don't know how to use that as a parent gallery to then open the selected in a child gallery.

    Hopefully someone else will come along!!

    Thanks again for taking the time to respond!

     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard