Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Sheets.move_sheets() not working for Home sheets in folders #120

Open
jcwill23 opened this issue Nov 12, 2018 · 0 comments
Open

Sheets.move_sheets() not working for Home sheets in folders #120

jcwill23 opened this issue Nov 12, 2018 · 0 comments

Comments

@jcwill23
Copy link

I am trying to move all objects that are not shared from Sheets(Home) to a Workspace.

When I try to move a Sheet located in Sheets(Home)\A-Folder to A-Workspace\A-Folder, I get 'Success', but the Sheet does not move.

I build a destination object:

    folder_dest = SmSh.models.ContainerDestination({
            'destination_id': fldr_id,
            'destination_type': 'folder'})

which is valid (no errors on the folder ID (fldr_id))

The move_sheets code is OK too (no errors)

    print(folder_dest)
    sht_move = SmSh.Sheets.move_sheet(sheet.id, folder_dest)
    print(sht_move.message)

with the response:

{"destinationId": ****************, "destinationType": "folder"}
SUCCESS

The results returned by move_sheets does not provide any useful information.

I am using the same code to move sheets successfully from Workspace to Workspace and from Workspace\Folder to Workspace\Folder.

It is only when going from Sheets(Home)\Folder to Workspace\Folder does it not actually move the Sheet. (I did not check Sheets(Home) to Workspace as I have none matching that description.

Craig

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant