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. |
Journal |
Enables you to include Journal documents in the Archive set. |
BillingDocument |
Enables you to include Billing 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.
|