Smartsheet.Api.Internal.FolderSheetResourcesImpl.CreateSheetFromTemplate C# (CSharp) Method

CreateSheetFromTemplate() public method

Creates a Sheet in the specified Folder, from the specified Template.

It mirrors To the following Smartsheet REST API method: POST /folders/{folderId}/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 ( long folderId, Sheet sheet, IEnumerable includes ) : Sheet
folderId long the folder Id
sheet Sheet the sheet To create
includes IEnumerable used To specify the optional objects To include
return Sheet
        public virtual Sheet CreateSheetFromTemplate(long folderId, Sheet sheet, IEnumerable<TemplateInclusion> includes)
        {
            StringBuilder path = new StringBuilder("folders/" + folderId + "/sheets");
            if (includes != null)
            {
                path.Append("?include=" + QueryUtil.GenerateCommaSeparatedList(includes));
            }
            return this.CreateResource(path.ToString(), typeof(Sheet), sheet);
        }