c2g.ArchiveSetsServiceglobal with sharing class ArchiveSetsService The service class relating to Archive Set. EnumsDocumentTypeThe value of the Document Type to be included in the Archive set.
Methods
createArchiveSetglobal static Id createArchiveSet(c2g.ArchiveSetsService.ArchiveSet archiveSet) Method to create Archive Set. Input Parameters
Return ValueId of ArchiveSet record. Sample Code//Note: This sample code is for demonstration purposes only. It is not intended for //use in a production environment, is not guaranteed against defects or errors, and //is in no way optimized or streamlined. //Create object of c2g.ArchiveSetsService.ArchiveSet c2g.ArchiveSetsService.ArchiveSet archiveSet = new c2g.ArchiveSetsService.ArchiveSet(); archiveSet.CompanyId = 'a1c0O000000eUCy'; archiveSet.DocumentType = c2g.ArchiveSetsService.DocumentType.ARDocuments; archiveSet.selectedYearId = 'a2u0O000000ebiJ'; archiveSet.fromPeriodId = 'a2U0O000000cpls'; archiveSet.toPeriodId = 'a2U0O000000cplt'; Id archiveSetId = c2g.ArchiveSetsService.createArchiveSet(archiveSet); runArchivingglobal static void runArchiving(Id archiveSetId) Method to run batch for Archiving. Input Parameters
discardglobal static void discard(Id archiveSetId) Method to discard Archive Set. Input Parameters
c2g.ArchiveSetsService.ArchiveSetglobal with sharing class ArchiveSet Holds information of the Archive Set Properties
Methods |