cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
urbanhaas
Level: Powered On

Errors trying to use Excel Online Business with a OneDrive for business Site/Library (Sharepoint file on MS Teams site)

I'm trying to access a spreadsheet on Sharepoint (OneDrive for Business Sites/Libraries on a MS Teams group) and use the data in it to populate a PowerApp. The spreadsheet is populated by MS/O365 Forms and is places into a Teams Site (Sharepoint). I keep getting REST API errors: "ExcelOnline(Business).GetItems failed: This app is not authorized to access this service. Try reopening the app and ensure all connections have been resolved."
 
Any ideas? I'd prefer to use the OneDrive for Business to access the Excel spreadsheet directly, but it doesn't offer a way to view files from sites (now libraries), only files on your personal drive, which breaks the whole purpose of this app. So I was trying to drive it through the REST API, by reverse engineering the same file access that works in Flow for this same file. I've tried accessing the "source" by both URL and by group.
 
REST API:
'ExcelOnline(Business)'.GetItems("Shared Documents","General/Pipeline.xlsx","Pipeline","sites/mySite.sharepoint.com:/teams/Sample Team")
 
or
'ExcelOnline(Business)'.GetItems("Shared Documents","General/Pipeline.xlsx","Pipeline","groups/12bb9876-dead-beef-1234-fakekey00000")
 
Function is supposed to be GetItems(drive,file,table,source,...). Using Flow, I was able to peek into what I believed to be the right entries, but I'm wondering if I am running into a larger enterprise apps access restriction.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Errors trying to use Excel Online Business with a OneDrive for business Site/Library (Sharepoint file on MS Teams site)

Hi @urbanhaas ,

 

Could you please  re-created the connections and re-authorized them to connect back to the app and then test it again?

 

Hope this could be helpful.

 

Best Regards.

Yumia

Administrator
Administrator

Re: Errors trying to use Excel Online Business with a OneDrive for business Site/Library (Sharepoint file on MS Teams site)

Hi @urbanhaas are you still receiving these errors? 

 

@TopShelf-MSFT 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 223 members 5,385 guests
Please welcome our newest community members: