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
- sortBy - Content field for sorting. Example - name for alphabetic sorting
- sortOrder - Ascending or Descending
- 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
- cotnentType - Use null to return everything. use folder to only return folders
List of Resource List objects. Each elements is the item represneting contents of a folder