c2g.CODAAPICashEntry_7_0global with sharing class CODAAPICashEntry_7_0 this service class provides cash entry functionality. This class contains deprecated items. Properties
Methods
PostCashEntrywebService static void PostCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to post a cash entry. Use CashEntryPost (Post Cash Entries) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. BulkPostCashEntrywebService static void BulkPostCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference[] values) This service allows you to post cash entries in bulk. Use CashEntryPost (Post Cash Entries) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Methods
CreateCashEntryDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference CreateCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICashEntryTypes_7_0.CashEntry value) This service allows you to create a cash entry. See "Cash Entry Fields" and "What is a Cash Entry" in the FinancialForce Help for more details. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. UpdateCashEntryDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference UpdateCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICashEntryTypes_7_0.CashEntry value) This service allows you to update a cash entry. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. GetCashEntryDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICashEntryTypes_7_0.CashEntry GetCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to retrieve a cash entry. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. BulkCreateCashEntryDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference[] BulkCreateCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICashEntryTypes_7_0.CashEntry[] values) This service allows you to create cash entries in bulk. Use CashEntrySave (Save Cash Entries) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. BulkUpdateCashEntryDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference[] BulkUpdateCashEntry(c2g.CODAAPICommon_7_0.Context context, c2g.CODAAPICashEntryTypes_7_0.CashEntry[] values) This service allows you to update cash entries in bulk. It also handles amending posted cash entries and their related transactions. Use CashEntryEdit (Edit Cash Entries) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. 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 cash entry. c2g.CODAAPICommon.Reference postedCashRef = c2g.CODAAPICommon.getRef('a3g1I000000TNDtQAO', null); c2g.CODAAPICommon_7_0.Context context = new c2g.CODAAPICommon_7_0.Context(); c2g.CODAAPICashEntryTypes_7_0.CashEntry ce = c2g.CODAAPICashEntry_7_0.GetCashEntry(context, postedCashRef); //detail the amendment ce.Description = 'AmendedDescription'; List<c2g.CODAAPICashEntryTypes_7_0.CashEntry> cashEntries = new List<c2g.CODAAPICashEntryTypes_7_0.CashEntry>(); cashEntries.add(ce); //call the API c2g.CODAAPICashEntry_7_0.BulkUpdateCashEntry(context, cashEntries); |