SheetRowResourcesMoveRowsToAnotherSheet Method | ![]() |
Moves Row(s) from the Sheet specified in the URL to (the bottom of) another sheet.
It mirrors to the following Smartsheet REST API method: POST /sheets/{sheetId}/rows/copy
Up to 5,000 row IDs can be specified in the request, but if the total number of rows in the destination sheet after the copy exceeds the Smartsheet row limit, an error response will be returned.
Any child rows of the rows specified in the request will also be moved. Parent-child relationships amongst rows will be preserved within the destination sheet.
Namespace: Smartsheet.Api
CopyOrMoveRowResult MoveRowsToAnotherSheet( long sheetId, CopyOrMoveRowDirective directive, IEnumerable<MoveRowInclusion> include, Nullable<bool> ignoreRowsNotFound )
Exception | Condition |
---|---|
InvalidOperationException | if any argument is null or empty string |
InvalidRequestException | if there is any problem with the REST API request |
AuthorizationException | if there is any problem with the REST API authorization (access token) |
ResourceNotFoundException | if the resource cannot be found |
ServiceUnavailableException | if the REST API service is not available (possibly due to rate limiting) |
SmartsheetException | if there is any other error during the operation |