why does "ss_client.models.ContainerDestination({" cause an error?
import json import os import requests from datetime import date import warnings from SSToken import MyToken #MyToken from simple_smartsheet import smartsheet from simple_smartsheet.models import Sheet, Column, Row, Cell, ColumnType MyShtIDNo = xxx folderID = xxx new_sheet_name = xxx ss_client = smartsheet.Smartsheet(MyToken) inc_list = ["data"] response = ss_client.Sheets.copy_sheet(MyShtIDNo, ss_client.models.ContainerDestination({ "destination_type": "folder", "destination_id": folderID, "new_name": new_sheet_name}), include=inc_list ) new_sheet = response.result
not sure I need my last line of code, working from https://stackoverflow.com/questions/51479985/copy-a-sheet-in-smartsheet-using-python-api.
Trying to copy a sheet with its data
Best Answer
-
Hi @Alan Meshaw,
Sounds like you are using simple-smartsheet which is a community supported SDK (https://pypi.org/project/simple-smartsheet/). The Stack Overflow article you mentioned I believe is using the Smartsheet Python SDK (https://pypi.org/project/smartsheet-python-sdk/). You can find out more about using the Smartsheet Python SDK here: https://github.com/smartsheet-platform/smartsheet-python-sdk.
Hope that helps!
Answers
-
Hi @Alan Meshaw,
Sounds like you are using simple-smartsheet which is a community supported SDK (https://pypi.org/project/simple-smartsheet/). The Stack Overflow article you mentioned I believe is using the Smartsheet Python SDK (https://pypi.org/project/smartsheet-python-sdk/). You can find out more about using the Smartsheet Python SDK here: https://github.com/smartsheet-platform/smartsheet-python-sdk.
Hope that helps!
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