c2g.CODAAPIJournal_12_0global with sharing class CODAAPIJournal_12_0 The service class relating to Journals. Properties
Methods
GetAPIVersionwebservice static String GetAPIVersion() Used to get the latest API version. Return ValueText GetServiceNamewebservice static String GetServiceName() Used to get the name of the service. Return ValueText CreateJournalDeprecated: Use the Salesforce API for CRUD operations. webservice static c2g.CODAAPICommon.Reference CreateJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIJournalTypes_12_0.Journal value) This service allows you to create a journal. See "Journal Fields" and "What is a Journal?" in the FinancialForce Help for more details. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. UpdateJournalDeprecated: Use the Salesforce API for CRUD operations. webservice static c2g.CODAAPICommon.Reference UpdateJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIJournalTypes_12_0.Journal value) This service allows you to update a journal. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. PostJournalwebservice static void PostJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to post a journal. Input Parameters
Return ValueThis web service does not return a value. GetJournalDeprecated: Use the Salesforce API for CRUD operations. webservice static c2g.CODAAPIJournalTypes_12_0.Journal GetJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to retrieve a journal. Input Parameters
Return ValueThis web service returns a c2g.CODAAPIJournalTypes_12_0.Journal object. BulkCancelJournalwebservice static List<c2g.CODAAPICommon.Reference> BulkCancelJournal(c2g.CODAAPICommon_10_0.Context context, List<c2g.CODAAPIJournalTypes_12_0.CancellingInformation> cancellingInformationList) This service allows you to cancel posted journals. Input Parameters
Return ValueThis web service returns a list of CODAAPICommon.Reference objects. BulkReverseJournalwebservice static List<c2g.CODAAPICommon.Reference> BulkReverseJournal(c2g.CODAAPICommon_10_0.Context context, List<c2g.CODAAPIJournalTypes_12_0.ReversingInformation> reversingInformationList) This service allows you to reverse journals. Input Parameters
Return ValueThis web service returns a list of CODAAPICommon.Reference objects. BulkCreateJournalDeprecated: Use the Salesforce API for CRUD operations. webservice static c2g.CODAAPICommon.Reference[] BulkCreateJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIJournalTypes_12_0.Journal[] values) This service allows you to create journals in bulk. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. BulkUpdateJournalDeprecated: Use the Salesforce API for CRUD operations. webservice static c2g.CODAAPICommon.Reference[] BulkUpdateJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPIJournalTypes_12_0.Journal[] values) This service allows you to update journals in bulk. It also handles amending posted journals and their related transactions. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. 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. //In addition to making updates, BulkUpdate can be used to amend, as this example shows //using a reference to an existing posted journal. c2g.CODAAPICommon.Reference postedCashRef = c2g.CODAAPICommon.getRef('a4M1I000000TN1PUAW', null); c2g.CODAAPICommon_10_0.Context context = new c2g.CODAAPICommon_10_0.Context(); c2g.CODAAPIJournalTypes_12_0.Journal journal = c2g.CODAAPIJournal_12_0.GetJournal(context, postedCashRef); //detail the amendment journal.JournalDescription = 'AmendedDescription'; List<c2g.CODAAPIJournalTypes_12_0.Journal> journals = new List<c2g.CODAAPIJournalTypes_12_0.Journal>(); journals.add(journal); //call the API c2g.CODAAPIJournal_12_0.BulkUpdateJournal(context, journals); BulkPostJournalwebservice static void BulkPostJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values) This service allows you to post journals in bulk. Input Parameters
Return ValueThis web service does not return a value. |