CreateSheetFromTemplate() public method

Create a sheet (from existing sheet or template) in default "Sheets" collection.

It mirrors To the following Smartsheet REST API method: POST /Sheets

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 CreateSheetFromTemplate ( Api.Models.Sheet sheet, IEnumerable includes ) : Api.Models.Sheet
sheet Api.Models.Sheet the sheet To create
includes IEnumerable used To specify the optional objects To include.
return Api.Models.Sheet
        public virtual void TestCreateSheetFromExisting()
        {
            server.setResponseBody("../../../TestSDK/resources/createSheetFromExisting.json");

            Sheet sheet = new Sheet.CreateSheetFromTemplateBuilder("bleh", 2906571706525572L).Build();

            Sheet newSheet = sheetResource.CreateSheetFromTemplate(sheet, null);

            Assert.AreEqual(466343087630212L, (long)newSheet.Id);
            Assert.AreEqual(AccessLevel.OWNER, newSheet.AccessLevel);
            Assert.AreEqual("https://app.smartsheet.com/b/home?lx=asdf", newSheet.Permalink);

            newSheet = sheetResource.CreateSheetFromTemplate(sheet, null);
            Assert.AreEqual(466343087630212L, (long)newSheet.Id);
            Assert.AreEqual(AccessLevel.OWNER, newSheet.AccessLevel);
            Assert.AreEqual("https://app.smartsheet.com/b/home?lx=asdf", newSheet.Permalink);
        }