c2g.CODAAPIJournal_12_0global with sharing class CODAAPIJournal_12_0 The service class relating to Journals. This class contains deprecated items. 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 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. 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. Use the JournalCancelJournal (Cancel Journals) custom permission to grant permissions on this service. 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. Use the JournalReverse (Create reversing journals) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service returns a list of CODAAPICommon.Reference objects. BulkPostJournalwebService static void BulkPostJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference[] values) This service allows you to post journals in bulk. Use the JournalPost (Post Journals) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service does not return a value. DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Methods
CreateJournalDeprecated: Deprecated: 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 Certinia Help for more details. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. UpdateJournalDeprecated: Deprecated: 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. GetJournalDeprecated: Deprecated: 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. BulkCreateJournalDeprecated: Deprecated: 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. Use JournalSave (Save Journals) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. BulkUpdateJournalDeprecated: Deprecated: 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. Use JournalEdit (Edit Journals) custom permission to grant permissions on this method. 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); |