How To Create A Project Sheet Via The Python Sdk
I'm trying to create new project sheets in a folder, however I can't find a way to ensure the sheet is a project sheet. Here is my code so far: def create_resource_sheet(name):
Solution 1:
Create the sheet from a template, either using the global project template or a user defined template if you want to customize.
templates = SS.Templates.list_public_templates()
for template in templates.data:
if template.global_template ==
smartsheet.models.enums.GlobalTemplate.PROJECT_SHEET:
break
sheet = smartsheet.models.Sheet({
'name': name,
'from_id': template.id
})
resource_sheet = SS.Folders.create_sheet_in_folder(folder_id, sheet)
If you want to customize create a project sheet using the Smartsheet web UI, make your changes and then Save As Template. Once you have the template, grab the ID from the Properties if you don't want to search for it, or SS.Templates.list_user_created_templates()
.
Post a Comment for "How To Create A Project Sheet Via The Python Sdk"