Table of Contents

Interface RowDiscussionResources

Namespace
Smartsheet.Api
Assembly
smartsheet-csharp-sdk.dll

This interface provides methods to access Discussion resources associated to a row resource.

Thread Safety: Implementation of this interface must be thread safe.

public interface RowDiscussionResources

Methods

CreateDiscussion(long, long, Discussion)

Creates a new Discussion on a Row.

It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/rows/{rowId}/discussions

Discussion CreateDiscussion(long sheetId, long rowId, Discussion discussion)

Parameters

sheetId long

the id of the sheet

rowId long

the id of the row

discussion Discussion

the discussion to add

Returns

Discussion

the created discussion

Exceptions

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

CreateDiscussionWithAttachment(long, long, Discussion, string, string)

Creates a new Discussion attached with an Attachment on a Row.

It mirrors to the following Smartsheet REST API method:
POST /sheets/{sheetId}/rows/{rowId}/discussions

Discussion CreateDiscussionWithAttachment(long sheetId, long rowId, Discussion discussion, string file, string fileType)

Parameters

sheetId long

the id of the sheet

rowId long

the id of the row

discussion Discussion

the discussion to add

file string

the file path

fileType string

the file type, can be null

Returns

Discussion

the created discussion

Exceptions

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

ListDiscussions(long, long, IEnumerable<DiscussionInclusion>?, PaginationParameters?)

Gets a list of all Discussions associated with the specified Row.

It mirrors to the following Smartsheet REST API method: GET /sheets/{sheetId}/rows/{rowId}/discussions

This operation supports pagination of results. For more information, see Paging.
PaginatedResult<Discussion> ListDiscussions(long sheetId, long rowId, IEnumerable<DiscussionInclusion>? include = null, PaginationParameters? paging = null)

Parameters

sheetId long

the sheet Id

rowId long

the row Id

include IEnumerable<DiscussionInclusion>

elements to include in response

paging PaginationParameters

the pagination

Returns

PaginatedResult<Discussion>

list of all Discussions

Exceptions

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