Smartsheet.Api.Internal.RowDiscussionResourcesImpl.CreateDiscussionWithAttachment C# (CSharp) Method

CreateDiscussionWithAttachment() public method

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

if any argument is null or empty string if there is any problem with the REST API request if there is any problem with the REST API authorization (access token) if the resource cannot be found if the REST API service is not available (possibly due To rate limiting) if there is any other error during the operation
public CreateDiscussionWithAttachment ( long sheetId, long rowId, Discussion discussion, string file, string fileType ) : Discussion
sheetId long the id of the sheet
rowId long the id of the row
discussion Smartsheet.Api.Models.Discussion the discussion to add
file string the file path
fileType string the file type, can be null
return Smartsheet.Api.Models.Discussion
        public virtual Discussion CreateDiscussionWithAttachment(long sheetId, long rowId, Discussion discussion, string file, string fileType)
        {
            return this.CreateResourceWithAttachment("sheets/" + sheetId + "/rows/" + rowId + "/discussions", discussion, "discussion", file, fileType);
        }