website logo
Go To WebsiteAppexchange
Home
Salesforce
HubSpot
Web App
API Reference
Navigate through spaces
⌘K
Table Of Contents
Quick Starts
Features
Widgets
Flow Actions
Flow Templates
Platform Events
Tutorials
How to make existing Salesforce records work with CloudFiles
Copy Salesforce files to SharePoint
Apex
FAQs
Support
Docs powered by archbee 

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
|
global static List<ResourceList> getFolderContents(
  List<Resource> folders,
  String sortBy,
  String sortOrder,
  String runAs,
  String contentType
)


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







Updated 23 May 2023
PREVIOUS
Create Links
NEXT
Update Resources
Docs powered by archbee 
TABLE OF CONTENTS
Parameters
Return Type