Accounting Apex API Developer Reference

c2g.CODAAPIJournal_12_0

global with sharing class CODAAPIJournal_12_0

the service class relating to journals.

This class contains deprecated items.

Properties

Name Type Description
VERSION_STRING String the api version.
SERVICE_NAME String the name of the service.

Methods

GetAPIVersion

webService static String GetAPIVersion()

Used to get the latest API version.

Return Value

Text

GetServiceName

webService static String GetServiceName()

Used to get the name of the service.

Return Value

Text

PostJournal

webService static void PostJournal(c2g.CODAAPICommon_10_0.Context context, c2g.CODAAPICommon.Reference value)

This service allows you to post a journal.
If you have assigned the System Administrator profile, this version of the service allows you to post a journal in a company that is not selected as the current company. You must specify the company name using the following context: CompanyName input parameter. Use the JournalPost (Post Journals) custom permission to grant permissions on this service.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the journal you want to post.

Return Value

This web service does not return a value.

BulkCancelJournal

webService 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

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
cancellingInformationList List<c2g.CODAAPIJournalTypes_12_0.CancellingInformation> Holds information used to cancel posted journals.

Return Value

This web service returns a list of CODAAPICommon.Reference objects.

BulkReverseJournal

webService 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

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
reversingInformationList List<c2g.CODAAPIJournalTypes_12_0.ReversingInformation> Holds information used to reverse journals.

Return Value

This web service returns a list of CODAAPICommon.Reference objects.

BulkPostJournal

webService 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

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPICommon.Reference[] Identifies the journals you want to post.

Return Value

This web service does not return a value.

Deprecated

The following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions.

Methods

CreateJournal

Deprecated: 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 FinancialForce Help for more details.
If you have assigned the System Administrator profile, this version of the service allows you to create a journal in a company that is not selected as the current company. You must specify the company name using the following context: CompanyName input parameter. Use JournalSave (Save Journals) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIJournalTypes_12_0.Journal Holds details of the journal you want to create.

Return Value

This web service returns a CODAAPICommon.Reference object.

UpdateJournal

Deprecated: 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.
If you have assigned the System Administrator profile, this version of the service allows you to update a journal in a company that is not selected as the current company. You must specify the company name using the following context: CompanyName input parameter. Use JournalEdit (Edit Journals) custom permission to grant permissions on this method.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPIJournalTypes_12_0.Journal Holds details of the journal you want to update.

Return Value

This web service returns a CODAAPICommon.Reference object.

GetJournal

Deprecated: 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.
If you have assigned the System Administrator profile, this version of the service allows you to retrieve a journal from a company that is not selected as the current company. You must specify the company name using the following context: CompanyName input parameter.

Input Parameters

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
value c2g.CODAAPICommon.Reference Identifies the journal you want to retrieve.

Return Value

This web service returns a c2g.CODAAPIJournalTypes_12_0.Journal object.

BulkCreateJournal

Deprecated: 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

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPIJournalTypes_12_0.Journal[] Holds details of the journals you want to create.

Return Value

This web service returns an array of CODAAPICommon.Reference objects.

BulkUpdateJournal

Deprecated: 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

Name Type Description
context c2g.CODAAPICommon_10_0.Context Identifies the FinancialForce company in which the current operation executes.
values c2g.CODAAPIJournalTypes_12_0.Journal[] Holds details of the journals you want to update.

Return Value

This 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);
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.