Accounting Apex API Developer Reference

c2g.SubAnalysisMappingService

global with sharing class SubAnalysisMappingService

The service class relating to SubAnalysis Mapping.

Methods

createNewMapping

global static c2g.SubAnalysisMappingService.SubAnalysisMapping createNewMapping()

This service creates and returns a new (unsaved) SubAnalysisMapping record.

Return Value

This service returns a c2g.SubAnalysisMappingService.SubAnalysisMapping object.

load

global static List<c2g.SubAnalysisMappingService.SubAnalysisMapping> load()

This service lists the SubAnalysisMapping records on your organization.

Return Value

This service returns a list of c2g.SubAnalysisMappingService.SubAnalysisMapping objects.

save

global static void save(List<c2g.SubAnalysisMappingService.SubAnalysisMapping> mapList)

This service saves the specified SubAnalysisMapping records.

Input Parameters

Name Type Description
mapList List<c2g.SubAnalysisMappingService.SubAnalysisMapping> Contains the list of SubAnalysisMapping records that you want to save.

getFieldLabels

global static Map<String, String> getFieldLabels(String documentType)

This service lists the API names and field labels for the custom fields on the specified document type.

Input Parameters

Name Type Description
documentType String The document type that you are interested in.

Return Value

This service returns a map of String, String objects.

deleteMappings

global static void deleteMappings(List<c2g.SubAnalysisMappingService.SubAnalysisMapping> mappings)

This service deletes the specified SubAnalysisMapping records.

Input Parameters

Name Type Description
mappings List<c2g.SubAnalysisMappingService.SubAnalysisMapping> The list of SubAnalysisMapping records to be deleted.

c2g.SubAnalysisMappingService.SubAnalysisMapping

global with sharing class SubAnalysisMapping

Holds a configuration of custom fields set up for sub-analysis mapping on your organization. For example, you might have set up custom fields to analyze profit by project code, department and warehouse. In this case you would need to create one SubAnalysisMapping record for Project Code, another for Department, and another for Warehouse.

Properties

Name Type Description
MappingId Id description Globally unique string that identifies the record.
MappingName String description A unique name that identifies this SubAnalysisMapping record across your organization.
SalesInvoiceField String description The custom field to use for this sub-analysis mapping on the sales invoice header.
SalesInvoiceLineItemField String description The custom field to use for this sub-analysis mapping on the sales invoice line item.
CurrencyRevaluationField String description The custom field to use for this sub-analysis mapping on the currency revaluation summary.
JournalField String description The custom field to use for this sub-analysis mapping on the journal header.
JournalLineItemField String description The custom field to use for this sub-analysis mapping on the journal line item.
PurchaseCreditNoteField String description The custom field to use for this sub-analysis mapping on the purchase credit note header.
PurchaseCreditNoteExpenseLineField String description The custom field to use for this sub-analysis mapping on the purchase credit note expense line.
PurchaseCreditNoteLineItemField String description The custom field to use for this sub-analysis mapping on the purchase credit note line item.
PurchaseInvoiceField String description The custom field to use for this sub-analysis mapping on the purchase invoice header.
PurchaseInvoiceExpenseLineField String description The custom field to use for this sub-analysis mapping on the purchase invoice expense line.
PurchaseInvoiceLineItemField String description The custom field to use for this sub-analysis mapping on the purchase invoice line item.
SalesCreditNoteField String description The custom field to use for this sub-analysis mapping on the sales credit note header.
SalesCreditNoteLineItemField String description The custom field to use for this sub-analysis mapping on the sales credit note line item.
TransactionField String description The custom field to use for this sub-analysis mapping on the transaction header.
TransactionLineItemField String description The custom field to use for this sub-analysis mapping on the transaction line item.
DeriveLineItemFromHeader Boolean description Determines whether or not blank sub-analysis line values on the source document are left blank when mapped across to transaction line items. When True, the mapped field on the transaction line item is populated by the corresponding mapped field on the transaction header if the value on the source document line is blank. When False, transaction line items do not derive their values from the transaction header, so any blank values on the source document line remain blank on the transaction line item.
LastModifiedById Id description ID of the user who last modified the record.
LastModifiedByName String description The name of the user who last modified the record.
LastModified Datetime description Date and time when the record was last modified by a user.

Methods

SubAnalysisMapping

global SubAnalysisMapping()

© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.