Accounting API Developer's Reference

c2g.FileManagementService

global with sharing class FileManagementService

The service class relating to File Management.

Methods

createTemporaryFileReturnDownloadUrl

global static String createTemporaryFileReturnDownloadUrl(String title, String data)

Creates a URL to the file containing the data that has been exported from within Online Inquiries.

Input Parameters

Name Type Description
title String The filename of the exported file.
data String The content of the exported file.

Return Value

This service returns a String object.

deleteOldExportDocuments

global static void deleteOldExportDocuments(Integer gracePeriodMinutes)

Deletes Salesforce documents created by exporting data from within Online Inquiries. Documents created within the grace period are not deleted.

Input Parameters

Name Type Description
gracePeriodMinutes Integer Documents created within this grace period are not deleted.