c2g.CODAAPIPurchaseInvoice_9_0global with sharing class CODAAPIPurchaseInvoice_9_0 The service class relating to Purchase Invoices. 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 PostPurchaseInvoicewebService static void PostPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to post a purchase invoice. Use the PayableInvoicePost (Post Payable Invoices) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service does not return a value. PlaceOnHoldwebService static void PlaceOnHold(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) ReleaseForPaymentwebService static void ReleaseForPayment(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) BulkPostPurchaseInvoicewebService static void BulkPostPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values) This service allows you to post purchase invoices in bulk. Use the PayableInvoicePost (Post Payable Invoices) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service does not return a value. BulkPlaceOnHoldwebService static void BulkPlaceOnHold(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values) Mass on hold activation of purchase invoices Use the PayableInvoicePlaceOnHoldOrRelease (Hold or Release Payable Invoice Payments) custom permission to grant permissions on this service. BulkReleaseForPaymentwebService static void BulkReleaseForPayment(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference[] values) Mass release of purchase invoices for payment Use the PayableInvoicePlaceOnHoldOrRelease (Hold or Release Payable Invoice Payments) custom permission to grant permissions on this service. DeprecatedThe following items are deprecated and not supported for use. We recommend that you stop using these items to avoid exceptions. Methods
CreatePurchaseInvoiceDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference CreatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice value) This service allows you to create a purchase invoice (also known as payable invoice). See "Payable Invoice Fields" and "What is a Payable Invoice" in the Certinia Help for more details. Use PayableInvoiceSave (Save Payable Invoices) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. UpdatePurchaseInvoiceDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference UpdatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice value) This service allows you to update a purchase invoice. Use the PayableInvoiceEdit (Edit Payable Invoices) custom permission to grant permissions on this service. Input Parameters
Return ValueThis web service returns a CODAAPICommon.Reference object. GetPurchaseInvoiceDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice GetPurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPICommon.Reference value) This service allows you to retrieve a purchase invoice. Input Parameters
Return ValueThis web service returns a c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice object. BulkCreatePurchaseInvoiceDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference[] BulkCreatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] values) This service allows you to create purchase invoices in bulk. Use PayableInvoiceSave (Save Payable Invoices) custom permission to grant permissions on this method. Input Parameters
Return ValueThis web service returns an array of CODAAPICommon.Reference objects. BulkUpdatePurchaseInvoiceDeprecated: Deprecated: Use the Salesforce API for CRUD operations. webService static c2g.CODAAPICommon.Reference[] BulkUpdatePurchaseInvoice(c2g.CODAAPICommon_9_0.Context context, c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice[] values) This service allows you to update purchase invoices in bulk. It also handles amending posted purchase invoices and their related transactions. Use the PayableInvoiceEdit (Edit Payable Invoices) custom permission to grant permissions on this service. 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 invoice. c2g.CODAAPICommon.Reference postedInvRef = c2g.CODAAPICommon.getRef('a4p1I00000002YwQAI', null); c2g.CODAAPICommon_9_0.Context context = new c2g.CODAAPICommon_9_0.Context(); c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice invoice = c2g.CODAAPIPurchaseInvoice_9_0.GetPurchaseInvoice(context, postedInvRef); //detail the amendment invoice.InvoiceDescription = 'AmendedDescription'; List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice> invoices = new List<c2g.CODAAPIPurchaseInvoiceTypes_9_0.PurchaseInvoice>(); invoices.add(invoice); //call the API c2g.CODAAPIPurchaseInvoice_9_0.BulkUpdatePurchaseInvoice(context, invoices); |