Accounting Apex API Developer Reference

c2g.CODAAPICommon

global with sharing class CODAAPICommon

Contains common data types

Methods

getUserRefFromId

global static c2g.CODAAPICommon.Reference getUserRefFromId(Id userId)

Create a new Reference from a Id

Input Parameters

Name Type Description
userId Id The Id to create the Reference from

Return Value

A new Reference

getRef

global static c2g.CODAAPICommon.Reference getRef(Id id, String name)

Create a new reference from both an Id and Name

Input Parameters

Name Type Description
id Id The Id to create the Reference from
name String The name string to create the Reference from

Return Value

A new Reference

c2g.CODAAPICommon.Reference

global with sharing class Reference

This data type allows you to reference an existing standard or custom object by Name or by ID. If neither is specified, an exception will occur. If both are specified, the ID takes precedence over the Name. The Name provided must be unambiguous, is used alone.

Properties

Name Type Description
Id ID Globally unique string that identifies a record. It is analogous to a primary key in relational databases. Assigned by the underlying Salesforce platfom.
Name String An alternative identifier for the record. This is either an auto-generated sequential number, or a user-defined string depending on its context.
© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.