Click or drag to resize

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

Remarks

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
Assemblies:   smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
  smartsheet-csharp-sdk (in smartsheet-csharp-sdk.dll) Version: 2.126.0
Syntax
CopyOrMoveRowResult MoveRowsToAnotherSheet(
	long sheetId,
	CopyOrMoveRowDirective directive,
	IEnumerable<MoveRowInclusion> include,
	Nullable<bool> ignoreRowsNotFound
)

Parameters

sheetId
Type: SystemInt64
the sheet Id to move from
directive
Type: Smartsheet.Api.ModelsCopyOrMoveRowDirective
directive
include
Type: System.Collections.GenericIEnumerableMoveRowInclusion
the elements to include
ignoreRowsNotFound
Type: SystemNullableBoolean
default is false. If set to true, specifying row Ids that do not exist within the source sheet will not cause an error response. If omitted or set to false, specifying row Ids that do not exist within the source sheet will cause an error response (and no rows will be copied).

Return Value

Type: CopyOrMoveRowResult
CopyOrMoveRowResult object
Exceptions
ExceptionCondition
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
See Also