SendSheet() public method

Send a sheet as a PDF attachment via Email To the designated recipients.

It mirrors To the following Smartsheet REST API method: POST /sheets/{sheetId}/emails

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 SendSheet ( long sheetId, Api.Models.SheetEmail email ) : void
sheetId long the sheetId
email Api.Models.SheetEmail the Email
return void
Example #1
0
        public virtual void TestSendSheet()
        {
            server.setResponseBody("../../../TestSDK/resources/sendEmails.json");

            string[]   emailAddress = new string[] { "*****@*****.**" };
            SheetEmail email        = new SheetEmail();

            email.Format = SheetEmailFormat.PDF;
            FormatDetails format = new FormatDetails();

            format.PaperSize    = PaperSize.A0;
            email.FormatDetails = format;
            email.To            = new List <string>(emailAddress);
            sheetResource.SendSheet(1234L, email);
        }