API AttributeError: data

Miguel Lopes
✭✭✭
- DEBUG:smartsheet.util:object 'Sheet' is missing property 'resource_management_type'
- DEBUG:smartsheet.util:object 'Sheet' is missing property 'cell_image_upload_enabled'
- DEBUG:smartsheet.util:object 'Sheet' is missing property 'is_multi_picklist_enabled'
- Traceback (most recent call last):
- File "/mnt/send_to_smartsheet/Move_Archive.py", line 60, in <module>
- main()
- File "/mnt/send_to_smartsheet/Move_Archive.py", line 52, in main
- move_rows_to_new_sheet()
- File "/mnt/send_to_smartsheet/Move_Archive.py", line 38, in move_rows_to_new_sheet
- rows = response.data.rows
- File "/opt/conda/lib/python3.9/site-packages/smartsheet/models/sheet.py", line 98, in __getattr__
- raise AttributeError(key)
Does anyone have a work around for this. This is the referenced code below
def move_rows_to_new_sheet():
response = SS.Sheets.get_sheet(SOURCE_SHEET_ID, include='rows')
rows = response.data.rows
for row in rows:
new_row = SS.Sheets.create_row(DESTINATION_SHEET_ID, row)
move_row_to_new_sheet(new_row.id)
Answers
-
If members of the Smartsheet Community are unable to help, you may want to explore other developer communities for help checking your code, such as the StackOverflow forum.
Cheers,
Genevieve
Need more information? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao!👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.3K Get Help
- 462 Global Discussions
- 156 Industry Talk
- 507 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 81 Community Job Board
- 517 Show & Tell
- 35 Member Spotlight
- 3 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
NEW Smartsheet API Documentation - bookmark the updated link! https://developers.smartsheet.com