0

I am using the Smartsheet 2.0 API with the C# SDK. I am trying to iterate through all of the sheets in folder. However, I am unable to find the API code to do so.

I tried FolderSheetResources interface, but a List() method isn't even implemented like on other interfaces; for example, WorkSpaceFolderResources.

smartsheetClient.WorkspaceResources.FolderResources.ListFolders() // Method exists.

smartsheetClient.FolderResources.SheetResources.ListSheets(); // Method doesn't exist.

And I have also tried the Sheets property of the Folder object.

folder.Sheets; // Always returns null.

Does anyone know how to list all sheets inside a folder?

ionylion
  • 17
  • 6

1 Answers1

0

Call getFolder on the specific folder you're looking at.

Folder folder = smartsheet.FolderResources.GetFolder(
  7116448184199044,           // long folderId
  null                        // IEnumerable<FolderInclusion> include
);

Once you have this Folder object, you can take a look at the Sheets array property.

The API Docs will give you more information about what else is present.

Software2
  • 2,358
  • 1
  • 18
  • 28