Skip to main content
Version: 1.0.0

ItemIdentifier

ItemIdentifier is a data type for specifying content items for use with the Content SDK components.

Attributes

type: 'persistentLocation' | 'folderUri' | 'driveItemId' | 'searchLocation'

Specify what type of content item this is.

persistentLocation

One of a set of pre-defined SAS Viya locations. Use one of the following value strings:

  • myFolder: the My Folder folder in SAS Viya
  • favorites: the My Favorites folder in SAS Viya
  • root: the SAS Content folder in SAS Viya
  • history: the Recents folder in SAS Viya
  • trash: the Recycle Bin folder in SAS Viya
  • quickAccess: the Quick Access list in SAS Viya
  • sharedWithMe: the Shared with Me folder in SAS Viya
  • sharedByMe: the Shared by Me folder in SAS Viya
  • recommendations: the Recommended list in SAS Viya
  • quarantined: the Quarantined items in SAS Viya
  • sasData: the SAS Data folder in SAS Viya
  • sasDataTables: the SAS data tables in SAS Viya

folderUri

Any SAS Viya folder uri. The value is of the form '/folder/folders/789d13d3-789d-4fa3-9fea-123e321f1ea1'.

driveItemId

Any content item, identified by its unique id in the drive service. The value is the item id.

searchLocation

A virtual location representing the results of a search. The value is an object with a name and a searchQuery string. This is the identifier that a ContentSearchFieldElement navigates to.

value: string | object

The value that identifies the item, as described for each type above.

You can find the URI for a Folder in SAS Drive in the Information Pane. Select the Folder, scroll down in the Information Pane to the More -> URI section and copy the URI.

Finding folder and item URIs