c2g.ArchiveSetsService
global with sharing class ArchiveSetsService
the service class relating to archive set.
Enums
DocumentType
the value of the document type to be included in the archive set.
ARDocuments |
Enables you to include Account Receivable documents in the Archive set. |
Methods
createArchiveSet
global static Id createArchiveSet(c2g.ArchiveSetsService.ArchiveSet archiveSet)
Method to create Archive Set.
Input Parameters
Return Value
Id of ArchiveSet record.
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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);
|
runArchiving
global static void runArchiving(Id archiveSetId)
Method to run batch for Archiving.
Input Parameters
archiveSetId |
Id |
Holds an id of ArchiveSet record. |
discard
global static void discard(Id archiveSetId)
Method to discard Archive Set.
Input Parameters
archiveSetId |
Id |
Holds an id of ArchiveSet record. |
c2g.ArchiveSetsService.ArchiveSet
global with sharing class ArchiveSet
holds information of the archive set
Properties
DocumentType |
c2g.ArchiveSetsService.DocumentType |
document type.
|
CompanyId |
Id |
holds id of company.
|
SelectedYearId |
Id |
holds id of selected year.
|
FromPeriodId |
Id |
holds id of from period.
|
ToPeriodId |
Id |
holds id of to period.
|
CreateSummarizationJournal |
Boolean |
holds value of create summarization journal.
|
Methods
ArchiveSet
global ArchiveSet()
Return Value
This constructor does not return a value.
|