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
Highlighted
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

TopShelf-MSFT
Level 10

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
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (10,677)