Get Summary Sheet Via API in to Power BI
I know the Power BI connector cant get data from a summary sheet report but can the API get this data?
If yes does anyone have an example I can use?
Many thanks
Martin
Answers
-
Hi Martin,
You can grab the report data using Python or your code of choice. Here's the script to get it as an Excel (the report ID is a dummy example ID:
smartsheet_client.Reports.get_report_as_excel( 3882962191181700, # report_id download_folder_path )
You can read more at https://smartsheet.redoc.ly/tag/reports#operation/getReport
Let me know if this helps, and please flag this post if I answered your question! Good luck!
-
Hi thanks for that it put me on the right path, but i now have another problem when running curl to the summary sheet in that its asking for level=2 or higher.
I assume that this is the "accessApiLevel" value but i cant find info on it in the API help. This was my attempt at guessing (which doesn't work). Any ideas are welcome.
curl https://api.smartsheet.com/2.0/reports/389************ \ -H "Authorization: Bearer 9Cg9fYP*********************" \ -H "accessApiLevel=2" \
-
this is the full error message if that helps
"errorCode" : 5623,
"message" : "The report you are attempting to open is a sheet summary report, which requires a query parameter of 'level=2' (or higher if available) to be specified in the API request.",
"refId" : "d3xadt"
-
@Martin Perry The accessApiLevel should be part of the URL and not a header parameter:
curl https://api.smartsheet.com/2.0/reports/{reportId}?accessApiLevel=2&level=3&include=objectValue
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives