Apex
CloudFiles Client

Get Folder Contents

Gets contents of the folders stored in external storage like SharePoint, Google Drive etc.

Please note, this functions works with multiple source folders and returns a list with each item representing the contents of each source folder

Apex


Parameters

  1. folders - List of Resource class representing source folders
  2. sortBy - Content field for sorting. Example - name for alphabetic sorting
  3. sortOrder - Ascending or Descending
  4. runAs- Email Id of the user on whom behalf the function should run. If you want to run the action as automation user, supply integrationuser
  5. cotnentType - Use null to return everything. use folder to only return folders

Return Type

List of Resource List objects. Each elements is the item represneting contents of a folder