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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives