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": "Title Test Cell", "permalink": "permalink goes here"}], "id": 6664015456823172, "name": "Smartsheet Folder Destination", "permalink": "permalink goes here (I edited it)"}
How do I get just the id of the new folder?