天道酬勤,学无止境

smartsheet-api-2.0

如何获取我从副本创建的新文件夹/工作表的 ID?(How do I get the ID of a new folder/sheet that I have created from a copy?)

问题 当我在 smartsheet 中复制文件夹时,有没有办法获取新文件夹的 ID? 到目前为止我尝试过的是: inc_list = ['all'] # you can add other parameters here, separated by a comma response = ss_client.Folders.copy_folder( folderID, # folder_id ss_client.models.ContainerDestination({ 'destination_id': destinationID, 'destination_type': 'folder', 'new_name': cellValue }), include=inc_list ) folder = ss_client.Folders.get_folder( destinationID) # folder_id print (folder) 这给了我一个长响应,如下所示: {"folders": [{"id": 1261015317931908, "name": "Title Test Cell", "permalink": "permalink go here"}], "id": 6664015456823172, "name": "Smartsheet Folder

2021-10-23 13:46:26    分类:技术分享    python   api   smartsheet-api   smartsheet-api-2.0

How do I get the ID of a new folder/sheet that I have created from a copy?

When I make a copy of a folder in smartsheet, is there a way to get the ID of the new folder? What I have tried so far is this: inc_list = ['all'] # you can add other parameters here, separated by a comma response = ss_client.Folders.copy_folder( folderID, # folder_id ss_client.models.ContainerDestination({ 'destination_id': destinationID, 'destination_type': 'folder', 'new_name': cellValue }), include=inc_list ) folder = ss_client.Folders.get_folder( destinationID) # folder_id print (folder) This gives me a long response that looks like this: {"folders": [{"id": 1261015317931908, "name":

2021-09-27 05:09:55    分类:问答    python   api   smartsheet-api   smartsheet-api-2.0

How to get the array of sheet ids in a folder with python

When I try to get the id array from the get.folder() call (by using folder = folder.sheets.id), I get the answer: "AttributeError: 'TypedList' object has no attribute 'id'" I'm not sure what function to call in python to get the array of sheet ids in the folder. I am trying to do this with the python smartsheet sdk, but I am not sure exactly how to format it. inc_list = ['all'] # you can add other parameters here, separated by a comma response = ss_client.Folders.copy_folder( folderID, # folder_id ss_client.models.ContainerDestination({ 'destination_id': destinationID, 'destination_type':

2021-07-30 03:19:45    分类:问答    python   api   smartsheet-api   smartsheet-api-2.0