0

Is it possible to copy and paste rows within in a single sheet with smartsheet api? I am using python.

When I try the following (using the same sheet id)

response = smartsheet_client.Sheets.copy_rows(
 <MySheetID>,
 smartsheet.models.CopyOrMoveRowDirective({
            'row_ids': [<MyRowID>],
            'to': smartsheet.models.CopyOrMoveRowDestination({
              'sheet_id': <MySheetID>
            })
          })
        )

I get the following error "Cannot copy or move row(s) within the same sheet."

Swag_B
  • 1
  • 1

1 Answers1

0

Copy the rows to a temporary sheet and then copy them to the base sheet ?

  • Thanks for your response. The issue is that I lose the predecessor/dependency values when I copy to another sheet. – Swag_B Jun 01 '20 at 22:10