Class ReportPathNode
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
Node in a report path response. Contains recursive folders leading to the target report.
public class ReportPathNode : PathNode
- Inheritance
-
ReportPathNode
- Inherited Members
Properties
Folders
The list of nested folder nodes on the path from this node to the target report; may be null.
public IList<ReportPathNode>? Folders { get; set; }
Property Value
Reports
The list of report leaf nodes within this node; non-null only at the deepest folder level.
public IList<PathLeaf>? Reports { get; set; }
Property Value
Methods
GetLeafReport()
Walks down through folders until reaching the node that contains reports, then returns the first report.
public PathLeaf? GetLeafReport()
Returns
- PathLeaf
The first PathLeaf report found at the deepest level, or
nullif the path contains no reports.
GetLeafReportPath()
Returns a /-separated path of node names from this node down to the target report.
public string? GetLeafReportPath()
Returns
- string
A string such as
"/Workspace/Folder/Report", ornullif the path contains no reports.
Examples
Workspace → Folder → Report returns "/Workspace/Folder/Report".
Workspace → Report (no intermediate folders) returns "/Workspace/Report".