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

hardcoded O365 account to access an excel file

I am building an appointment system for our school that only uses Excel as its data source using the OneDrive for Business Connector. This excel file is shared with everyone in the domain so that they can create an appointment so that inputs from the application will save to the excel file. This will allow everyone to open the Excel file directly from the Excel Desktop app or Excel online and input data in that file, this action will bypass the process and will become an invalid transaction. In order to somehow prevent this and preserve all valid transactions, I am thinking of making a duplicate of the Excel file and have all the valid transactions be mirrored to that duplicate file. This duplicate file will not be shared with everyone, only with the owner.

 

Is there a way to hardcode the credentials of the owner of the duplicate file to access this duplicated file?

 

Also, due to limited resources, I can't make any SQL Servers in Azure since I don't have access nor setup a local database server and can't use the On-Site Premises feature.

 

Thank you very much!

1 ACCEPTED SOLUTION

Accepted Solutions
Piandz
New Member

The idea of using SharePoint as the data source really helped me a lot and I was able to do what I need. I was able to make use of the List and make it not accessible via the SharePoint site by tweaking the permissions but still able to in the application in Power Apps.

View solution in original post

4 REPLIES 4
C-Papa
Super User
Super User

Hi, from what you are describing above you will run into lots of issues using excel as a data source, have a watch of this video.

 

QTT - Power Apps Excel is a terrible data source - YouTube

 

Working for a school, do you not automatically get access to SharePoint? i would look to build this in SharePoint as it will be easier than SQL, unless you are familiar with building tables / queries in SQL, and its fairly similar to a spreadsheet. 

 

There is also a Microsoft bookings app that might be close to what you want out of the box. 

BrianS
Super User
Super User

I do not believe you can "hardcode" credentials for an Excel File. You may want to think about Sharepoint as a data source. If you are using O365 you should have access. You can pretty well lock down those lists. The other option would be to use Teams and Dataverse if that is available. You can totally control access to that data source.

The idea of using SharePoint as the data source really helped me a lot and I was able to do what I need. I was able to make use of the List and make it not accessible via the SharePoint site by tweaking the permissions but still able to in the application in Power Apps.

Piandz
New Member

The idea of using SharePoint as the data source really helped me a lot and I was able to do what I need. I was able to make use of the List and make it not accessible via the SharePoint site by tweaking the permissions but still able to in the application in Power Apps.

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,657)