FileRequests Class

The FileRequests class provides methods that create file operation requests. Each method returns a new RestRequest object. Applications send this object to the Salesforce service to process the request. For example, the following code snippet calls the ownedFilesList() method to retrieve a RestRequest object. It then sends the RestRequest object to the server using RestClient.sendAsync():



This example passes null to the first parameter (userId). This value tells the ownedFilesList() method to use the ID of the context, or logged in, user. The second null, for the pageNum parameter, tells the method to fetch the first page of results.

See Files and Networking for a full description of FileRequests methods.

For a full reference of FileRequests methods, see Package For a full description of the REST request and response bodies, go to Connect REST API Developer Guide | Resources | Files Resources at